@abaplint/cli 2.113.123 → 2.113.125

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 +19 -7
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -778,6 +778,7 @@ exports.Sonarqube = Sonarqube;
778
778
  Object.defineProperty(exports, "__esModule", ({ value: true }));
779
779
  exports.Standard = void 0;
780
780
  const total_1 = __webpack_require__(/*! ./total */ "./build/src/formatters/total.js");
781
+ const path = __webpack_require__(/*! node:path */ "node:path");
781
782
  class Standard {
782
783
  output(issues, fileCount) {
783
784
  const tuples = [];
@@ -824,11 +825,17 @@ class Standard {
824
825
  return output + " - ";
825
826
  }
826
827
  build(issue) {
828
+ let filename = path.normalize(issue.getFilename());
829
+ if (filename.startsWith("\\\\?\\")) {
830
+ // windows UNC path
831
+ filename = filename.substring(4);
832
+ }
833
+ const relativePath = path.relative(process.cwd(), filename);
827
834
  return {
828
- filename: issue.getFilename() + "[" + issue.getStart().getRow() + ", " + issue.getStart().getCol() + "]",
835
+ filename: relativePath + "[" + issue.getStart().getRow() + ", " + issue.getStart().getCol() + "]",
829
836
  description: issue.getMessage() + " (" + issue.getKey() + ")",
830
837
  startPos: issue.getStart(),
831
- rawFilename: issue.getFilename(),
838
+ rawFilename: relativePath,
832
839
  severity: issue.getSeverity().toString(),
833
840
  };
834
841
  }
@@ -4408,6 +4415,8 @@ class Compare extends combi_1.Expression {
4408
4415
  const inn = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), "IN", (0, combi_1.altPrio)(_1.Source, list));
4409
4416
  const sopt = (0, combi_1.seq)("IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("SUPPLIED", "BOUND", (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("INSTANCE OF", _1.ClassName), version_1.Version.OpenABAP), "REQUESTED", "INITIAL"));
4410
4417
  const between = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), "BETWEEN", _1.Source, "AND", _1.Source);
4418
+ // https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abennews-740_sp08-expressions.htm
4419
+ // but also seems to work in v740sp05, blah
4411
4420
  const predicate = (0, combi_1.ver)(version_1.Version.v740sp08, _1.MethodCallChain);
4412
4421
  const rett = (0, combi_1.seq)(_1.Source, (0, combi_1.altPrio)((0, combi_1.seq)(_1.CompareOperator, _1.Source), inn, between, sopt));
4413
4422
  const fsassign = (0, combi_1.seq)(_1.SourceFieldSymbolChain, "IS", (0, combi_1.optPrio)("NOT"), "ASSIGNED");
@@ -7959,10 +7968,11 @@ exports.SQLAggregation = SQLAggregation;
7959
7968
 
7960
7969
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7961
7970
  exports.SQLAliasField = void 0;
7971
+ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
7962
7972
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
7963
7973
  class SQLAliasField extends combi_1.Expression {
7964
7974
  getRunnable() {
7965
- return (0, combi_1.regex)(/^(\/\w+\/)?\w+~(\/\w+\/)?\w+$/);
7975
+ return (0, combi_1.seq)((0, combi_1.regex)(/^(\/\w+\/)?\w+~(\/\w+\/)?\w+$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^\w+$/))));
7966
7976
  }
7967
7977
  }
7968
7978
  exports.SQLAliasField = SQLAliasField;
@@ -8820,7 +8830,7 @@ class SQLSource extends combi_1.Expression {
8820
8830
  getRunnable() {
8821
8831
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
8822
8832
  const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
8823
- return (0, combi_1.alt)(_1.SQLAliasField, _1.SimpleSource3, at);
8833
+ return (0, combi_1.altPrio)(_1.SQLAliasField, _1.SimpleSource3, at);
8824
8834
  }
8825
8835
  }
8826
8836
  exports.SQLSource = SQLSource;
@@ -19362,9 +19372,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
19362
19372
  exports.DynproLoop = void 0;
19363
19373
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19364
19374
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19375
+ const chain_1 = __webpack_require__(/*! ./chain */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/chain.js");
19365
19376
  class DynproLoop {
19366
19377
  getMatcher() {
19367
- return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DynproLoop), (0, _combi_1.star)((0, _combi_1.sta)(Statements.Module)), (0, _combi_1.sta)(Statements.EndLoop));
19378
+ return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DynproLoop), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sub)(chain_1.Chain))), (0, _combi_1.sta)(Statements.EndLoop));
19368
19379
  }
19369
19380
  }
19370
19381
  exports.DynproLoop = DynproLoop;
@@ -19877,9 +19888,10 @@ const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./n
19877
19888
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19878
19889
  const chain_1 = __webpack_require__(/*! ./chain */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/chain.js");
19879
19890
  const loop_1 = __webpack_require__(/*! ./loop */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/loop.js");
19891
+ const dynpro_loop_1 = __webpack_require__(/*! ./dynpro_loop */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/dynpro_loop.js");
19880
19892
  class ProcessAfterInput {
19881
19893
  getMatcher() {
19882
- const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain), (0, _combi_1.sub)(loop_1.Loop)));
19894
+ const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain), (0, _combi_1.sub)(dynpro_loop_1.DynproLoop), (0, _combi_1.sub)(loop_1.Loop)));
19883
19895
  return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.ProcessAfterInput), pai);
19884
19896
  }
19885
19897
  }
@@ -54228,7 +54240,7 @@ class Registry {
54228
54240
  }
54229
54241
  static abaplintVersion() {
54230
54242
  // magic, see build script "version.sh"
54231
- return "2.113.123";
54243
+ return "2.113.125";
54232
54244
  }
54233
54245
  getDDICReferences() {
54234
54246
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.123",
3
+ "version": "2.113.125",
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.123",
41
+ "@abaplint/core": "^2.113.125",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",