@abaplint/core 2.102.60 → 2.102.61

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.
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.60";
68
+ return "2.102.61";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -38,7 +38,7 @@ class CheckSubrc extends _abap_rule_1.ABAPRule {
38
38
 
39
39
  If sy-dbcnt is checked after database statements, it is considered okay.
40
40
 
41
- "SELECT SINGLE @abap_true FROM " is considered as an existence check
41
+ "SELECT SINGLE @abap_true FROM " is considered as an existence check, also "SELECT COUNT( * )" is considered okay
42
42
 
43
43
  If IS ASSIGNED is checked after assigning, it is considered okay.
44
44
 
@@ -89,6 +89,8 @@ FIND statement with MATCH COUNT is considered okay if subrc is not checked`,
89
89
  else if (config.selectTable === true
90
90
  && statement.get() instanceof Statements.Select
91
91
  && statement.concatTokens().toUpperCase().startsWith("SELECT SINGLE ") === false
92
+ && statement.concatTokens().toUpperCase().startsWith("SELECT COUNT( * ) ") === false
93
+ && statement.concatTokens().toUpperCase().startsWith("SELECT COUNT(*) ") === false
92
94
  && this.isChecked(i, statements) === false
93
95
  && this.checksDbcnt(i, statements) === false) {
94
96
  issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.60",
3
+ "version": "2.102.61",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,9 +53,9 @@
53
53
  "@microsoft/api-extractor": "^7.38.0",
54
54
  "@types/chai": "^4.3.9",
55
55
  "@types/mocha": "^10.0.3",
56
- "@types/node": "^20.8.7",
56
+ "@types/node": "^20.8.8",
57
57
  "chai": "^4.3.10",
58
- "eslint": "^8.51.0",
58
+ "eslint": "^8.52.0",
59
59
  "mocha": "^10.2.0",
60
60
  "c8": "^8.0.1",
61
61
  "source-map-support": "^0.5.21",