@abaplint/cli 2.115.4 → 2.115.5

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 +9 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -55237,7 +55237,7 @@ class Registry {
55237
55237
  }
55238
55238
  static abaplintVersion() {
55239
55239
  // magic, see build script "version.sh"
55240
- return "2.115.4";
55240
+ return "2.115.5";
55241
55241
  }
55242
55242
  getDDICReferences() {
55243
55243
  return this.ddicReferences;
@@ -60255,7 +60255,14 @@ class DoubleSpace extends _abap_rule_1.ABAPRule {
60255
60255
  issues = issues.concat(this.checkParen(s, file));
60256
60256
  }
60257
60257
  issues = issues.concat(this.checkAfterColon(file));
60258
- return issues;
60258
+ // remove issues with the same starting position
60259
+ const uniqueIssues = [];
60260
+ for (const issue of issues) {
60261
+ if (uniqueIssues.findIndex(i => i.getStart().equals(issue.getStart())) === -1) {
60262
+ uniqueIssues.push(issue);
60263
+ }
60264
+ }
60265
+ return uniqueIssues;
60259
60266
  }
60260
60267
  checkAfterColon(file) {
60261
60268
  const issues = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.4",
3
+ "version": "2.115.5",
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.115.4",
41
+ "@abaplint/core": "^2.115.5",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",