@abaplint/cli 2.114.6 → 2.114.8

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 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -54998,7 +54998,7 @@ class Registry {
54998
54998
  }
54999
54999
  static abaplintVersion() {
55000
55000
  // magic, see build script "version.sh"
55001
- return "2.114.6";
55001
+ return "2.114.8";
55002
55002
  }
55003
55003
  getDDICReferences() {
55004
55004
  return this.ddicReferences;
@@ -57992,6 +57992,7 @@ class CheckSubrcConf extends _basic_rule_config_1.BasicRuleConfig {
57992
57992
  this.updateDatabase = true;
57993
57993
  this.insertDatabase = true;
57994
57994
  this.modifyDatabase = true;
57995
+ this.deleteDatabase = true;
57995
57996
  this.readTable = true;
57996
57997
  this.assign = true;
57997
57998
  this.find = true;
@@ -58086,6 +58087,13 @@ FIND statement with MATCH COUNT is considered okay if subrc is not checked`,
58086
58087
  const fix = this.buildFix(file, statement);
58087
58088
  issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
58088
58089
  }
58090
+ else if (config.deleteDatabase === true
58091
+ && statement.get() instanceof Statements.DeleteDatabase
58092
+ && this.isChecked(i, statements) === false
58093
+ && this.checksDbcnt(i, statements) === false) {
58094
+ const fix = this.buildFix(file, statement);
58095
+ issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
58096
+ }
58089
58097
  else if (config.insertDatabase === true
58090
58098
  && statement.get() instanceof Statements.InsertDatabase
58091
58099
  && this.isChecked(i, statements) === false
@@ -74533,7 +74541,7 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
74533
74541
  return {
74534
74542
  key: "sql_escape_host_variables",
74535
74543
  title: "Escape SQL host variables",
74536
- shortDescription: `Escape SQL host variables, from 740sp05`,
74544
+ shortDescription: `Escape SQL host variables, from 740sp05 and in open-abap`,
74537
74545
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obsolete-language-elements`,
74538
74546
  tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Syntax],
74539
74547
  badExample: `SELECT * FROM tab INTO TABLE res WHERE field = val.`,
@@ -74553,7 +74561,8 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
74553
74561
  return [];
74554
74562
  }
74555
74563
  if (this.reg.getConfig().getVersion() < version_1.Version.v740sp02
74556
- && this.reg.getConfig().getVersion() !== version_1.Version.Cloud) {
74564
+ && this.reg.getConfig().getVersion() !== version_1.Version.Cloud
74565
+ && this.reg.getConfig().getVersion() !== version_1.Version.OpenABAP) {
74557
74566
  return [];
74558
74567
  }
74559
74568
  for (const s of file.getStatements()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.114.6",
3
+ "version": "2.114.8",
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.114.6",
41
+ "@abaplint/core": "^2.114.8",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",