@abaplint/cli 2.114.5 → 2.114.7
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/cli.js +7 -5
- 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.
|
|
55001
|
+
return "2.114.7";
|
|
55002
55002
|
}
|
|
55003
55003
|
getDDICReferences() {
|
|
55004
55004
|
return this.ddicReferences;
|
|
@@ -67519,6 +67519,7 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
67519
67519
|
this.conf = conf;
|
|
67520
67520
|
}
|
|
67521
67521
|
runParsed(file, obj) {
|
|
67522
|
+
var _a, _b;
|
|
67522
67523
|
const issues = [];
|
|
67523
67524
|
const ddic = new ddic_1.DDIC(this.reg);
|
|
67524
67525
|
if (obj instanceof objects_1.Class) {
|
|
@@ -67543,10 +67544,10 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
67543
67544
|
rowContent = " " + rowContent;
|
|
67544
67545
|
}
|
|
67545
67546
|
let offset = 0;
|
|
67546
|
-
if (rows[i - 1].endsWith("\r")) {
|
|
67547
|
+
if ((_a = rows[i - 1]) === null || _a === void 0 ? void 0 : _a.endsWith("\r")) {
|
|
67547
67548
|
offset = -1;
|
|
67548
67549
|
}
|
|
67549
|
-
const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
|
|
67550
|
+
const startPos = new position_1.Position(i, ((_b = rows[i - 1]) === null || _b === void 0 ? void 0 : _b.length) + 1 + offset);
|
|
67550
67551
|
const endPos = new position_1.Position(i + 1, rows[i].length + 1);
|
|
67551
67552
|
let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
|
|
67552
67553
|
if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
|
|
@@ -74532,7 +74533,7 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
74532
74533
|
return {
|
|
74533
74534
|
key: "sql_escape_host_variables",
|
|
74534
74535
|
title: "Escape SQL host variables",
|
|
74535
|
-
shortDescription: `Escape SQL host variables, from 740sp05`,
|
|
74536
|
+
shortDescription: `Escape SQL host variables, from 740sp05 and in open-abap`,
|
|
74536
74537
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obsolete-language-elements`,
|
|
74537
74538
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Syntax],
|
|
74538
74539
|
badExample: `SELECT * FROM tab INTO TABLE res WHERE field = val.`,
|
|
@@ -74552,7 +74553,8 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
74552
74553
|
return [];
|
|
74553
74554
|
}
|
|
74554
74555
|
if (this.reg.getConfig().getVersion() < version_1.Version.v740sp02
|
|
74555
|
-
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
74556
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
74557
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.OpenABAP) {
|
|
74556
74558
|
return [];
|
|
74557
74559
|
}
|
|
74558
74560
|
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.
|
|
3
|
+
"version": "2.114.7",
|
|
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.
|
|
41
|
+
"@abaplint/core": "^2.114.7",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|