@abaplint/core 2.113.223 → 2.113.224
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.
|
@@ -6,7 +6,7 @@ const _1 = require(".");
|
|
|
6
6
|
class SourceFieldSymbolChain extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
8
|
const chain = (0, combi_1.seq)(new _1.ArrowOrDash(), _1.ComponentName);
|
|
9
|
-
return (0, combi_1.seq)(_1.FieldSymbol, (0, combi_1.starPrio)(chain));
|
|
9
|
+
return (0, combi_1.seq)(_1.FieldSymbol, (0, combi_1.starPrio)(chain), (0, combi_1.optPrio)(_1.TableBody));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.SourceFieldSymbolChain = SourceFieldSymbolChain;
|
package/build/src/registry.js
CHANGED
|
@@ -5,6 +5,7 @@ const _basic_rule_config_1 = require("./_basic_rule_config");
|
|
|
5
5
|
const _abap_object_1 = require("../objects/_abap_object");
|
|
6
6
|
const include_graph_1 = require("../utils/include_graph");
|
|
7
7
|
const _irule_1 = require("./_irule");
|
|
8
|
+
const objects_1 = require("../objects");
|
|
8
9
|
class CheckIncludeConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
9
10
|
}
|
|
10
11
|
exports.CheckIncludeConf = CheckIncludeConf;
|
|
@@ -20,7 +21,8 @@ class CheckInclude {
|
|
|
20
21
|
extendedInformation: `
|
|
21
22
|
* Reports unused includes
|
|
22
23
|
* Errors if the includes are not found
|
|
23
|
-
* Error if including a main program
|
|
24
|
+
* Error if including a main program
|
|
25
|
+
* Skips ZX* includes`,
|
|
24
26
|
tags: [_irule_1.RuleTag.Syntax],
|
|
25
27
|
};
|
|
26
28
|
}
|
|
@@ -39,6 +41,9 @@ class CheckInclude {
|
|
|
39
41
|
if (!(obj instanceof _abap_object_1.ABAPObject)) {
|
|
40
42
|
return [];
|
|
41
43
|
}
|
|
44
|
+
if (obj instanceof objects_1.Program && obj.isInclude() === true && obj.getName().startsWith("ZX")) {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
42
47
|
let ret = [];
|
|
43
48
|
for (const file of obj.getABAPFiles()) {
|
|
44
49
|
ret = ret.concat(this.graph.getIssuesFile(file));
|
package/build/src/skip_logic.js
CHANGED
|
@@ -95,11 +95,7 @@ class SkipLogic {
|
|
|
95
95
|
var _a;
|
|
96
96
|
if (this.tobj === undefined) {
|
|
97
97
|
this.tobj = {};
|
|
98
|
-
for (const
|
|
99
|
-
if (obj.getType() !== "TOBJ") {
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
const tobj = obj;
|
|
98
|
+
for (const tobj of this.reg.getObjectsByType("TOBJ")) {
|
|
103
99
|
const area = (_a = tobj.getArea()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
104
100
|
if (area) {
|
|
105
101
|
this.tobj[area] = true;
|