@abaplint/cli 2.118.1 → 2.118.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +9 -5
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -25983,7 +25983,9 @@ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modu
|
|
|
25983
25983
|
class DatabaseTable {
|
|
25984
25984
|
static runSyntax(node, input) {
|
|
25985
25985
|
const token = node.getFirstToken();
|
|
25986
|
-
const
|
|
25986
|
+
const rawName = token.getStr();
|
|
25987
|
+
const starPrefixed = rawName.startsWith("*");
|
|
25988
|
+
const name = starPrefixed ? rawName.substring(1) : rawName;
|
|
25987
25989
|
if (name === "(") {
|
|
25988
25990
|
// dynamic
|
|
25989
25991
|
return undefined;
|
|
@@ -26202,6 +26204,7 @@ class FieldChain {
|
|
|
26202
26204
|
let context = undefined;
|
|
26203
26205
|
const children = node.getChildren();
|
|
26204
26206
|
context = this.findTop(children[0], input, refType);
|
|
26207
|
+
let prev = children[0].concatTokens();
|
|
26205
26208
|
for (let i = 1; i < children.length; i++) {
|
|
26206
26209
|
const current = children[i];
|
|
26207
26210
|
if (current === undefined) {
|
|
@@ -26242,7 +26245,7 @@ class FieldChain {
|
|
|
26242
26245
|
}
|
|
26243
26246
|
}
|
|
26244
26247
|
else {
|
|
26245
|
-
const message = "
|
|
26248
|
+
const message = prev.toUpperCase() + " is not structured (" + (context === null || context === void 0 ? void 0 : context.constructor.name) + ")";
|
|
26246
26249
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, current.getFirstToken(), message));
|
|
26247
26250
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
26248
26251
|
}
|
|
@@ -26309,6 +26312,7 @@ class FieldChain {
|
|
|
26309
26312
|
}
|
|
26310
26313
|
}
|
|
26311
26314
|
}
|
|
26315
|
+
prev = current.concatTokens();
|
|
26312
26316
|
}
|
|
26313
26317
|
return context;
|
|
26314
26318
|
}
|
|
@@ -55882,7 +55886,7 @@ class Registry {
|
|
|
55882
55886
|
}
|
|
55883
55887
|
static abaplintVersion() {
|
|
55884
55888
|
// magic, see build script "version.sh"
|
|
55885
|
-
return "2.118.
|
|
55889
|
+
return "2.118.2";
|
|
55886
55890
|
}
|
|
55887
55891
|
getDDICReferences() {
|
|
55888
55892
|
return this.ddicReferences;
|
|
@@ -56480,12 +56484,12 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#abap-doc-on
|
|
|
56480
56484
|
issues.push(issue);
|
|
56481
56485
|
}
|
|
56482
56486
|
if (rowText.trim().match(regexEmptyAbapdoc) === null && previousRowsTexts.indexOf(rowText) === previousRowsTexts.length - 1) {
|
|
56483
|
-
const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr()
|
|
56487
|
+
const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr();
|
|
56484
56488
|
const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
|
|
56485
56489
|
issues.push(issue);
|
|
56486
56490
|
}
|
|
56487
56491
|
if (rowText.trim().match(regexEmptyParameterName) !== null) {
|
|
56488
|
-
const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr()
|
|
56492
|
+
const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr();
|
|
56489
56493
|
const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
|
|
56490
56494
|
issues.push(issue);
|
|
56491
56495
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.118.
|
|
3
|
+
"version": "2.118.2",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.118.
|
|
41
|
+
"@abaplint/core": "^2.118.2",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|