@abaplint/core 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.
package/build/src/registry.js
CHANGED
|
@@ -19,6 +19,7 @@ class CheckSubrcConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
|
19
19
|
this.updateDatabase = true;
|
|
20
20
|
this.insertDatabase = true;
|
|
21
21
|
this.modifyDatabase = true;
|
|
22
|
+
this.deleteDatabase = true;
|
|
22
23
|
this.readTable = true;
|
|
23
24
|
this.assign = true;
|
|
24
25
|
this.find = true;
|
|
@@ -113,6 +114,13 @@ FIND statement with MATCH COUNT is considered okay if subrc is not checked`,
|
|
|
113
114
|
const fix = this.buildFix(file, statement);
|
|
114
115
|
issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
|
|
115
116
|
}
|
|
117
|
+
else if (config.deleteDatabase === true
|
|
118
|
+
&& statement.get() instanceof Statements.DeleteDatabase
|
|
119
|
+
&& this.isChecked(i, statements) === false
|
|
120
|
+
&& this.checksDbcnt(i, statements) === false) {
|
|
121
|
+
const fix = this.buildFix(file, statement);
|
|
122
|
+
issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
|
|
123
|
+
}
|
|
116
124
|
else if (config.insertDatabase === true
|
|
117
125
|
&& statement.get() instanceof Statements.InsertDatabase
|
|
118
126
|
&& this.isChecked(i, statements) === false
|
|
@@ -21,7 +21,7 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
21
21
|
return {
|
|
22
22
|
key: "sql_escape_host_variables",
|
|
23
23
|
title: "Escape SQL host variables",
|
|
24
|
-
shortDescription: `Escape SQL host variables, from 740sp05`,
|
|
24
|
+
shortDescription: `Escape SQL host variables, from 740sp05 and in open-abap`,
|
|
25
25
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obsolete-language-elements`,
|
|
26
26
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Syntax],
|
|
27
27
|
badExample: `SELECT * FROM tab INTO TABLE res WHERE field = val.`,
|
|
@@ -41,7 +41,8 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
41
41
|
return [];
|
|
42
42
|
}
|
|
43
43
|
if (this.reg.getConfig().getVersion() < version_1.Version.v740sp02
|
|
44
|
-
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
44
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
45
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.OpenABAP) {
|
|
45
46
|
return [];
|
|
46
47
|
}
|
|
47
48
|
for (const s of file.getStatements()) {
|