@abaplint/cli 2.99.5 → 2.99.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 +23 -3
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -37739,9 +37739,10 @@ class Config {
|
|
|
37739
37739
|
return new Config(JSON.stringify(config));
|
|
37740
37740
|
}
|
|
37741
37741
|
getEnabledRules() {
|
|
37742
|
+
var _a;
|
|
37742
37743
|
const rules = [];
|
|
37743
37744
|
for (const rule of artifacts_rules_1.ArtifactsRules.getRules()) {
|
|
37744
|
-
const ruleConfig = this.config["rules"][rule.getMetadata().key];
|
|
37745
|
+
const ruleConfig = (_a = this.config["rules"]) === null || _a === void 0 ? void 0 : _a[rule.getMetadata().key];
|
|
37745
37746
|
const ruleExists = ruleConfig !== undefined;
|
|
37746
37747
|
if (ruleExists) {
|
|
37747
37748
|
if (ruleConfig === false) { // "rule": false
|
|
@@ -45096,6 +45097,7 @@ class RenameDataElement {
|
|
|
45096
45097
|
changes = changes.concat(helper.renameDDICCodeReferences(obj, oldName, newName));
|
|
45097
45098
|
changes = changes.concat(helper.renameDDICTABLReferences(obj, oldName, newName));
|
|
45098
45099
|
changes = changes.concat(helper.renameDDICTTYPReferences(obj, oldName, newName));
|
|
45100
|
+
changes = changes.concat(helper.renameDDICAUTHReferences(obj, oldName, newName));
|
|
45099
45101
|
return {
|
|
45100
45102
|
documentChanges: changes,
|
|
45101
45103
|
};
|
|
@@ -45565,6 +45567,21 @@ class RenamerHelper {
|
|
|
45565
45567
|
}
|
|
45566
45568
|
return changes;
|
|
45567
45569
|
}
|
|
45570
|
+
renameDDICAUTHReferences(obj, oldName, newName) {
|
|
45571
|
+
const changes = [];
|
|
45572
|
+
const used = this.reg.getDDICReferences().listWhereUsed(obj);
|
|
45573
|
+
for (const u of used) {
|
|
45574
|
+
if (u.type !== "AUTH") {
|
|
45575
|
+
continue;
|
|
45576
|
+
}
|
|
45577
|
+
const tabl = this.reg.getObject(u.type, u.name);
|
|
45578
|
+
if (tabl === undefined) {
|
|
45579
|
+
continue;
|
|
45580
|
+
}
|
|
45581
|
+
changes.push(...this.buildXMLFileEdits(tabl, "ROLLNAME", oldName, newName));
|
|
45582
|
+
}
|
|
45583
|
+
return changes;
|
|
45584
|
+
}
|
|
45568
45585
|
buildXMLFileEdits(object, xmlTag, oldName, newName) {
|
|
45569
45586
|
const changes = [];
|
|
45570
45587
|
const xml = object.getXMLFile();
|
|
@@ -47558,7 +47575,7 @@ class Registry {
|
|
|
47558
47575
|
}
|
|
47559
47576
|
static abaplintVersion() {
|
|
47560
47577
|
// magic, see build script "version.sh"
|
|
47561
|
-
return "2.99.
|
|
47578
|
+
return "2.99.6";
|
|
47562
47579
|
}
|
|
47563
47580
|
getDDICReferences() {
|
|
47564
47581
|
return this.references;
|
|
@@ -49847,10 +49864,12 @@ class CheckComments extends _abap_rule_1.ABAPRule {
|
|
|
49847
49864
|
shortDescription: `
|
|
49848
49865
|
Various checks for comment usage.`,
|
|
49849
49866
|
extendedInformation: `
|
|
49850
|
-
|
|
49867
|
+
Detects end of line comments. Comments starting with "#EC" or "##" are ignored
|
|
49851
49868
|
|
|
49852
49869
|
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#put-comments-before-the-statement-they-relate-to`,
|
|
49853
49870
|
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
|
|
49871
|
+
badExample: `WRITE 2. " descriptive comment`,
|
|
49872
|
+
goodExample: `" descriptive comment\nWRITE 2.`,
|
|
49854
49873
|
};
|
|
49855
49874
|
}
|
|
49856
49875
|
getDescription(issueType) {
|
|
@@ -66064,6 +66083,7 @@ ENDIF.`,
|
|
|
66064
66083
|
&& !(statement.get() instanceof Statements.DataEnd)
|
|
66065
66084
|
&& !(statement.get() instanceof Statements.Type)
|
|
66066
66085
|
&& !(statement.get() instanceof Statements.Form)
|
|
66086
|
+
&& !(statement.get() instanceof Statements.Tables)
|
|
66067
66087
|
&& !(statement.get() instanceof Statements.TypeEnd)
|
|
66068
66088
|
&& !(statement.get() instanceof Statements.Constant)
|
|
66069
66089
|
&& !(statement.get() instanceof Statements.ConstantEnd)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.99.
|
|
3
|
+
"version": "2.99.6",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abaplint": "./abaplint"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://abaplint.org",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@abaplint/core": "^2.99.
|
|
40
|
+
"@abaplint/core": "^2.99.6",
|
|
41
41
|
"@types/chai": "^4.3.5",
|
|
42
42
|
"@types/glob": "^7.2.0",
|
|
43
43
|
"@types/minimist": "^1.2.2",
|
|
44
44
|
"@types/mocha": "^10.0.1",
|
|
45
|
-
"@types/node": "^
|
|
45
|
+
"@types/node": "^20.0.0",
|
|
46
46
|
"@types/progress": "^2.0.5",
|
|
47
47
|
"chai": "^4.3.7",
|
|
48
48
|
"chalk": "^5.2.0",
|