@abaplint/cli 2.113.139 → 2.113.140

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.
Files changed (2) hide show
  1. package/build/cli.js +17 -20
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -54575,7 +54575,7 @@ class Registry {
54575
54575
  }
54576
54576
  static abaplintVersion() {
54577
54577
  // magic, see build script "version.sh"
54578
- return "2.113.139";
54578
+ return "2.113.140";
54579
54579
  }
54580
54580
  getDDICReferences() {
54581
54581
  return this.ddicReferences;
@@ -77413,8 +77413,9 @@ class RulesRunner {
77413
77413
  }
77414
77414
  (_c = input === null || input === void 0 ? void 0 : input.progress) === null || _c === void 0 ? void 0 : _c.set(rules.length, "Initialize Rules");
77415
77415
  for (const rule of rules) {
77416
+ const start = Date.now();
77416
77417
  if ((input === null || input === void 0 ? void 0 : input.outputPerformance) === true) {
77417
- process.stderr.write("Initializing rule " + rule.getMetadata().key + "\n");
77418
+ process.stderr.write("Initializing rule " + rule.getMetadata().key);
77418
77419
  }
77419
77420
  else {
77420
77421
  (_d = input === null || input === void 0 ? void 0 : input.progress) === null || _d === void 0 ? void 0 : _d.tick("Initialize Rules - " + rule.getMetadata().key);
@@ -77423,6 +77424,9 @@ class RulesRunner {
77423
77424
  throw new Error(rule.getMetadata().key + " missing initialize method");
77424
77425
  }
77425
77426
  rule.initialize(this.reg);
77427
+ if ((input === null || input === void 0 ? void 0 : input.outputPerformance) === true) {
77428
+ process.stderr.write(", " + (Date.now() - start) + "ms\n");
77429
+ }
77426
77430
  rulePerformance[rule.getMetadata().key] = 0;
77427
77431
  }
77428
77432
  (_e = input === null || input === void 0 ? void 0 : input.progress) === null || _e === void 0 ? void 0 : _e.set(check.length, "Finding Issues");
@@ -77893,9 +77897,6 @@ class IncludeGraph {
77893
77897
  this.graph = new Graph();
77894
77898
  this.build();
77895
77899
  }
77896
- getIssues() {
77897
- return this.issues;
77898
- }
77899
77900
  listMainForInclude(filename) {
77900
77901
  const ret = [];
77901
77902
  if (filename === undefined) {
@@ -77915,6 +77916,17 @@ class IncludeGraph {
77915
77916
  ret.push(i);
77916
77917
  }
77917
77918
  }
77919
+ const v = this.graph.findVertexByFilename(file.getFilename());
77920
+ if (v !== undefined
77921
+ && v.include === true
77922
+ && this.listMainForInclude(v.filename).length === 0) {
77923
+ const f = this.reg.getFileByName(v.filename);
77924
+ if (f === undefined) {
77925
+ throw new Error("findUnusedIncludes internal error");
77926
+ }
77927
+ const issue = issue_1.Issue.atPosition(f, new position_1.Position(1, 1), "INCLUDE not used anywhere", new check_include_1.CheckInclude().getMetadata().key, severity_1.Severity.Error);
77928
+ ret.push(issue);
77929
+ }
77918
77930
  return ret;
77919
77931
  }
77920
77932
  ///////////////////////////////
@@ -77955,21 +77967,6 @@ class IncludeGraph {
77955
77967
  }
77956
77968
  }
77957
77969
  }
77958
- this.findUnusedIncludes();
77959
- }
77960
- findUnusedIncludes() {
77961
- for (const v of Object.values(this.graph.verticesFilenameIndex)) {
77962
- if (v.include === true) {
77963
- if (this.listMainForInclude(v.filename).length === 0) {
77964
- const f = this.reg.getFileByName(v.filename);
77965
- if (f === undefined) {
77966
- throw new Error("findUnusedIncludes internal error");
77967
- }
77968
- const issue = issue_1.Issue.atPosition(f, new position_1.Position(1, 1), "INCLUDE not used anywhere", new check_include_1.CheckInclude().getMetadata().key, severity_1.Severity.Error);
77969
- this.issues.push(issue);
77970
- }
77971
- }
77972
- }
77973
77970
  }
77974
77971
  addVertices() {
77975
77972
  for (const o of getABAPObjects(this.reg)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.139",
3
+ "version": "2.113.140",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.139",
41
+ "@abaplint/core": "^2.113.140",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^24.0.10",
45
+ "@types/node": "^24.0.12",
46
46
  "@types/progress": "^2.0.7",
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",