@abaplint/cli 2.99.4 → 2.99.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 +24 -9
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -33924,7 +33924,7 @@ class CharacterType extends _abstract_type_1.AbstractType {
33924
33924
  constructor(length, extra) {
33925
33925
  super(extra);
33926
33926
  if (length <= 0) {
33927
- throw new Error("Bad LENGTH");
33927
+ throw new Error("Bad LENGTH, Character");
33928
33928
  }
33929
33929
  this.length = length;
33930
33930
  }
@@ -34295,7 +34295,7 @@ class FloatingPointType extends _abstract_type_1.AbstractType {
34295
34295
  constructor(length, qualifiedName) {
34296
34296
  super({ qualifiedName: qualifiedName });
34297
34297
  if (length <= 0) {
34298
- throw new Error("Bad LENGTH");
34298
+ throw new Error("Bad LENGTH, Floating Point");
34299
34299
  }
34300
34300
  this.length = length;
34301
34301
  }
@@ -34372,7 +34372,7 @@ class HexType extends _abstract_type_1.AbstractType {
34372
34372
  constructor(length, qualifiedName) {
34373
34373
  super({ qualifiedName: qualifiedName });
34374
34374
  if (length <= 0) {
34375
- throw new Error("Bad LENGTH");
34375
+ throw new Error("Bad LENGTHm, Hex");
34376
34376
  }
34377
34377
  this.length = length;
34378
34378
  }
@@ -34537,7 +34537,7 @@ class NumericType extends _abstract_type_1.AbstractType {
34537
34537
  constructor(length, qualifiedName) {
34538
34538
  super({ qualifiedName: qualifiedName });
34539
34539
  if (length <= 0) {
34540
- throw new Error("Bad LENGTH");
34540
+ throw new Error("Bad LENGTH, Numeric");
34541
34541
  }
34542
34542
  this.length = length;
34543
34543
  }
@@ -34624,10 +34624,10 @@ class PackedType extends _abstract_type_1.AbstractType {
34624
34624
  constructor(length, decimals, extra) {
34625
34625
  super(extra);
34626
34626
  if (length <= 0) {
34627
- throw new Error("Bad LENGTH");
34627
+ throw new Error("Bad LENGTH, Packed");
34628
34628
  }
34629
34629
  else if (decimals < 0) {
34630
- throw new Error("Bad DECIMALS");
34630
+ throw new Error("Bad DECIMALS, Packed");
34631
34631
  }
34632
34632
  this.length = length;
34633
34633
  this.decimals = decimals;
@@ -47558,7 +47558,7 @@ class Registry {
47558
47558
  }
47559
47559
  static abaplintVersion() {
47560
47560
  // magic, see build script "version.sh"
47561
- return "2.99.4";
47561
+ return "2.99.5";
47562
47562
  }
47563
47563
  getDDICReferences() {
47564
47564
  return this.references;
@@ -63721,6 +63721,10 @@ const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./
63721
63721
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
63722
63722
  const __1 = __webpack_require__(/*! .. */ "./node_modules/@abaplint/core/build/src/index.js");
63723
63723
  class SelectSingleFullKeyConf extends _basic_rule_config_1.BasicRuleConfig {
63724
+ constructor() {
63725
+ super(...arguments);
63726
+ this.allowPseudo = true;
63727
+ }
63724
63728
  }
63725
63729
  exports.SelectSingleFullKeyConf = SelectSingleFullKeyConf;
63726
63730
  class SelectSingleFullKey {
@@ -63742,6 +63746,14 @@ class SelectSingleFullKey {
63742
63746
  return this;
63743
63747
  }
63744
63748
  getConfig() {
63749
+ if (this.conf === undefined) {
63750
+ this.conf = {
63751
+ allowPseudo: true,
63752
+ };
63753
+ }
63754
+ if (this.conf.allowPseudo === undefined) {
63755
+ this.conf.allowPseudo = true;
63756
+ }
63745
63757
  return this.conf;
63746
63758
  }
63747
63759
  setConfig(conf) {
@@ -63773,7 +63785,11 @@ class SelectSingleFullKey {
63773
63785
  continue;
63774
63786
  }
63775
63787
  const next = statements[i + 1];
63776
- if ((next === null || next === void 0 ? void 0 : next.get()) instanceof __1.Comment && next.concatTokens().includes(this.getMetadata().pseudoComment + "")) {
63788
+ if ((next === null || next === void 0 ? void 0 : next.get()) instanceof __1.Comment
63789
+ && next.concatTokens().includes(this.getMetadata().pseudoComment + "")) {
63790
+ if (this.getConfig().allowPseudo !== true) {
63791
+ issues.push(issue_1.Issue.atStatement(file, s, "Pseudo comment not allowed", this.getMetadata().key, this.getConfig().severity));
63792
+ }
63777
63793
  continue;
63778
63794
  }
63779
63795
  const tabl = this.findReference(databaseTable.getFirstToken().getStart(), syntax.spaghetti, file);
@@ -63782,7 +63798,6 @@ class SelectSingleFullKey {
63782
63798
  continue;
63783
63799
  }
63784
63800
  const keys = table.listKeys(this.reg);
63785
- // const type = table.parseType(this.reg);
63786
63801
  const cond = s.findFirstExpression(__1.Expressions.SQLCond);
63787
63802
  const set = new Set();
63788
63803
  for (const key of keys) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.99.4",
3
+ "version": "2.99.5",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "bin": {
6
6
  "abaplint": "./abaplint"
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "homepage": "https://abaplint.org",
39
39
  "devDependencies": {
40
- "@abaplint/core": "^2.99.4",
40
+ "@abaplint/core": "^2.99.5",
41
41
  "@types/chai": "^4.3.5",
42
42
  "@types/glob": "^7.2.0",
43
43
  "@types/minimist": "^1.2.2",
@@ -54,7 +54,7 @@
54
54
  "mocha": "^10.2.0",
55
55
  "progress": "^2.0.3",
56
56
  "typescript": "^5.0.4",
57
- "webpack": "^5.81.0",
57
+ "webpack": "^5.82.0",
58
58
  "webpack-cli": "^5.0.2",
59
59
  "xml-js": "^1.6.11"
60
60
  },