@abaplint/cli 2.113.10 → 2.113.12
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 +24 -7
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -229,7 +229,7 @@ class ApplyFixes {
|
|
|
229
229
|
&& list2.range.end.getRow() >= list1.range.start.getRow()) {
|
|
230
230
|
return true;
|
|
231
231
|
}
|
|
232
|
-
if (list2.range.start.getRow() <= list1.range.
|
|
232
|
+
if (list2.range.start.getRow() <= list1.range.end.getRow()
|
|
233
233
|
&& list2.range.end.getRow() >= list1.range.end.getRow()) {
|
|
234
234
|
return true;
|
|
235
235
|
}
|
|
@@ -255,6 +255,20 @@ class ApplyFixes {
|
|
|
255
255
|
appliedIssues.push(i);
|
|
256
256
|
edits.push(edit);
|
|
257
257
|
}
|
|
258
|
+
/*
|
|
259
|
+
if (edits.length > 0) {
|
|
260
|
+
console.log("EDITS:");
|
|
261
|
+
for (const e of edits) {
|
|
262
|
+
for (const filename of Object.keys(e)) {
|
|
263
|
+
console.log("\t" + filename);
|
|
264
|
+
for (const i of e[filename]) {
|
|
265
|
+
console.dir(i.range);
|
|
266
|
+
console.dir(i.newText);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
*/
|
|
258
272
|
const changed = (0, core_1.applyEditList)(reg, edits);
|
|
259
273
|
for (const filename of changed) {
|
|
260
274
|
this.changedFiles.add(filename);
|
|
@@ -52732,7 +52746,7 @@ class Registry {
|
|
|
52732
52746
|
}
|
|
52733
52747
|
static abaplintVersion() {
|
|
52734
52748
|
// magic, see build script "version.sh"
|
|
52735
|
-
return "2.113.
|
|
52749
|
+
return "2.113.12";
|
|
52736
52750
|
}
|
|
52737
52751
|
getDDICReferences() {
|
|
52738
52752
|
return this.ddicReferences;
|
|
@@ -73972,6 +73986,7 @@ class UnusedMethods {
|
|
|
73972
73986
|
extendedInformation: `Checks private and protected methods.
|
|
73973
73987
|
|
|
73974
73988
|
Unused methods are not reported if the object contains parser or syntax errors.
|
|
73989
|
+
Quick fixes only appears for private methods.
|
|
73975
73990
|
|
|
73976
73991
|
Skips:
|
|
73977
73992
|
* methods FOR TESTING
|
|
@@ -74063,12 +74078,14 @@ Skips:
|
|
|
74063
74078
|
else if (this.suppressedbyPseudo(statement, file)) {
|
|
74064
74079
|
continue;
|
|
74065
74080
|
}
|
|
74066
|
-
const implementation = this.findMethodImplementation(i, file);
|
|
74067
74081
|
let fix = undefined;
|
|
74068
|
-
if (
|
|
74069
|
-
const
|
|
74070
|
-
|
|
74071
|
-
|
|
74082
|
+
if (i.visibility === visibility_1.Visibility.Private) {
|
|
74083
|
+
const implementation = this.findMethodImplementation(i, file);
|
|
74084
|
+
if (implementation !== undefined) {
|
|
74085
|
+
const fix1 = edit_helper_1.EditHelper.deleteStatement(file, statement);
|
|
74086
|
+
const fix2 = edit_helper_1.EditHelper.deleteRange(file, implementation.getFirstToken().getStart(), implementation.getLastToken().getEnd());
|
|
74087
|
+
fix = edit_helper_1.EditHelper.merge(fix1, fix2);
|
|
74088
|
+
}
|
|
74072
74089
|
}
|
|
74073
74090
|
const message = "Method \"" + i.identifier.getName() + "\" not used";
|
|
74074
74091
|
issues.push(issue_1.Issue.atIdentifier(i.identifier, message, this.getMetadata().key, this.conf.severity, fix));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.12",
|
|
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.113.
|
|
41
|
+
"@abaplint/core": "^2.113.12",
|
|
42
42
|
"@types/chai": "^4.3.19",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|