@abaplint/cli 2.100.4 → 2.100.6
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 +18 -4
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -47757,7 +47757,7 @@ class Registry {
|
|
|
47757
47757
|
}
|
|
47758
47758
|
static abaplintVersion() {
|
|
47759
47759
|
// magic, see build script "version.sh"
|
|
47760
|
-
return "2.100.
|
|
47760
|
+
return "2.100.6";
|
|
47761
47761
|
}
|
|
47762
47762
|
getDDICReferences() {
|
|
47763
47763
|
return this.ddicReferences;
|
|
@@ -57098,7 +57098,16 @@ IF condition1.
|
|
|
57098
57098
|
...
|
|
57099
57099
|
ELSEIF condition2.
|
|
57100
57100
|
...
|
|
57101
|
-
ENDIF
|
|
57101
|
+
ENDIF.
|
|
57102
|
+
|
|
57103
|
+
CASE variable.
|
|
57104
|
+
WHEN value1.
|
|
57105
|
+
...
|
|
57106
|
+
WHEN value2.
|
|
57107
|
+
IF condition2.
|
|
57108
|
+
...
|
|
57109
|
+
ENDIF.
|
|
57110
|
+
ENDCASE.`,
|
|
57102
57111
|
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
|
|
57103
57112
|
};
|
|
57104
57113
|
}
|
|
@@ -63427,6 +63436,9 @@ class ReduceStringTemplates extends _abap_rule_1.ABAPRule {
|
|
|
63427
63436
|
for (const second of source.findDirectExpressions(Expressions.StringTemplate)) {
|
|
63428
63437
|
issues.push(issue_1.Issue.atToken(file, second.getFirstToken(), "Nested string templates, reduce", this.getMetadata().key, this.conf.severity));
|
|
63429
63438
|
}
|
|
63439
|
+
if (ts.findDirectExpression(Expressions.StringTemplateFormatting)) {
|
|
63440
|
+
continue;
|
|
63441
|
+
}
|
|
63430
63442
|
for (const constant of source.findDirectExpressions(Expressions.Constant)) {
|
|
63431
63443
|
for (const constantString of constant.findDirectExpressions(Expressions.ConstantString)) {
|
|
63432
63444
|
issues.push(issue_1.Issue.atToken(file, constantString.getFirstToken(), "Constant string in text template, reduce", this.getMetadata().key, this.conf.severity));
|
|
@@ -65717,13 +65729,15 @@ class TypesNaming extends _abap_rule_1.ABAPRule {
|
|
|
65717
65729
|
if (stat.get() instanceof Statements.Type && nesting === 0) {
|
|
65718
65730
|
expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
|
|
65719
65731
|
}
|
|
65720
|
-
else if (stat.get() instanceof Statements.TypeBegin
|
|
65732
|
+
else if (stat.get() instanceof Statements.TypeBegin
|
|
65733
|
+
|| stat.get() instanceof Statements.TypeEnumBegin) {
|
|
65721
65734
|
if (nesting === 0) {
|
|
65722
65735
|
expr = stat.findFirstExpression(Expressions.NamespaceSimpleName);
|
|
65723
65736
|
}
|
|
65724
65737
|
nesting = nesting + 1;
|
|
65725
65738
|
}
|
|
65726
|
-
else if (stat.get() instanceof Statements.TypeEnd
|
|
65739
|
+
else if (stat.get() instanceof Statements.TypeEnd
|
|
65740
|
+
|| stat.get() instanceof Statements.TypeEnumEnd) {
|
|
65727
65741
|
nesting = nesting - 1;
|
|
65728
65742
|
continue;
|
|
65729
65743
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.100.
|
|
3
|
+
"version": "2.100.6",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.100.
|
|
41
|
+
"@abaplint/core": "^2.100.6",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|
|
45
45
|
"@types/mocha": "^10.0.1",
|
|
46
|
-
"@types/node": "^20.2.
|
|
46
|
+
"@types/node": "^20.2.1",
|
|
47
47
|
"@types/progress": "^2.0.5",
|
|
48
48
|
"chai": "^4.3.7",
|
|
49
49
|
"chalk": "^5.2.0",
|