@abaplint/cli 2.102.57 → 2.102.58

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 +12 -5
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -49306,7 +49306,7 @@ class Registry {
49306
49306
  }
49307
49307
  static abaplintVersion() {
49308
49308
  // magic, see build script "version.sh"
49309
- return "2.102.57";
49309
+ return "2.102.58";
49310
49310
  }
49311
49311
  getDDICReferences() {
49312
49312
  return this.ddicReferences;
@@ -65766,6 +65766,10 @@ const syntax_1 = __webpack_require__(/*! ../abap/5_syntax/syntax */ "./node_modu
65766
65766
  const _abap_object_1 = __webpack_require__(/*! ../objects/_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
65767
65767
  const basic_1 = __webpack_require__(/*! ../abap/types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
65768
65768
  class SelectAddOrderByConf extends _basic_rule_config_1.BasicRuleConfig {
65769
+ constructor() {
65770
+ super(...arguments);
65771
+ this.skipForAllEntries = false;
65772
+ }
65769
65773
  }
65770
65774
  exports.SelectAddOrderByConf = SelectAddOrderByConf;
65771
65775
  class SelectAddOrderBy {
@@ -65797,7 +65801,7 @@ If the target is a sorted/hashed table, no issue is reported`,
65797
65801
  this.conf = conf;
65798
65802
  }
65799
65803
  run(obj) {
65800
- var _a;
65804
+ var _a, _b;
65801
65805
  const issues = [];
65802
65806
  if (!(obj instanceof _abap_object_1.ABAPObject) || obj.getType() === "INTF") {
65803
65807
  return [];
@@ -65811,13 +65815,16 @@ If the target is a sorted/hashed table, no issue is reported`,
65811
65815
  const selects = stru.findAllStatements(Statements.Select);
65812
65816
  selects.push(...stru.findAllStatements(Statements.SelectLoop));
65813
65817
  for (const s of selects) {
65814
- const c = s.concatTokens().toUpperCase();
65815
- if (c.startsWith("SELECT SINGLE ")) {
65818
+ const concat = s.concatTokens().toUpperCase();
65819
+ if (concat.startsWith("SELECT SINGLE ")) {
65820
+ continue;
65821
+ }
65822
+ else if (((_a = this.getConfig()) === null || _a === void 0 ? void 0 : _a.skipForAllEntries) === true && concat.includes(" FOR ALL ENTRIES ")) {
65816
65823
  continue;
65817
65824
  }
65818
65825
  // skip COUNT(*)
65819
65826
  const list = s.findAllExpressions(Expressions.SQLField);
65820
- if (list.length === 1 && ((_a = list[0].getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.SQLAggregation) {
65827
+ if (list.length === 1 && ((_b = list[0].getFirstChild()) === null || _b === void 0 ? void 0 : _b.get()) instanceof Expressions.SQLAggregation) {
65821
65828
  continue;
65822
65829
  }
65823
65830
  else if (s.findFirstExpression(Expressions.SQLOrderBy)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.57",
3
+ "version": "2.102.58",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.57",
42
- "@types/chai": "^4.3.7",
41
+ "@abaplint/core": "^2.102.58",
42
+ "@types/chai": "^4.3.8",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.3",
45
45
  "@types/mocha": "^10.0.2",
46
- "@types/node": "^20.8.4",
46
+ "@types/node": "^20.8.6",
47
47
  "@types/progress": "^2.0.5",
48
48
  "chai": "^4.3.10",
49
49
  "chalk": "^5.3.0",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^10.2.0",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.2.2",
58
- "webpack": "^5.88.2",
58
+ "webpack": "^5.89.0",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },