@abaplint/core 2.95.7 → 2.95.9
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.
|
@@ -63,9 +63,9 @@ class ABAPObject extends _abstract_object_1.AbstractObject {
|
|
|
63
63
|
return this.texts;
|
|
64
64
|
}
|
|
65
65
|
findTexts(parsed) {
|
|
66
|
-
var _a, _b, _c;
|
|
66
|
+
var _a, _b, _c, _d;
|
|
67
67
|
this.texts = {};
|
|
68
|
-
if (((_c = (_b = (_a = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit["asx:abap"]) === null ||
|
|
68
|
+
if (((_d = (_c = (_b = (_a = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"]) === null || _c === void 0 ? void 0 : _c.TPOOL) === null || _d === void 0 ? void 0 : _d.item) === undefined) {
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
for (const t of (0, xml_utils_1.xmlToArray)(parsed.abapGit["asx:abap"]["asx:values"].TPOOL.item)) {
|
package/build/src/registry.js
CHANGED
|
@@ -50,6 +50,9 @@ class XMLConsistency {
|
|
|
50
50
|
if (name === undefined) {
|
|
51
51
|
issues.push(issue_1.Issue.atRow(file, 1, "Name undefined in XML", this.getMetadata().key, this.conf.severity));
|
|
52
52
|
}
|
|
53
|
+
else if (obj.getDescription() && obj.getDescription().length > 60) {
|
|
54
|
+
issues.push(issue_1.Issue.atRow(file, 1, "Description too long", this.getMetadata().key, this.conf.severity));
|
|
55
|
+
}
|
|
53
56
|
else if (name !== obj.getName().toUpperCase()) {
|
|
54
57
|
issues.push(issue_1.Issue.atRow(file, 1, "Name in XML does not match object", this.getMetadata().key, this.conf.severity));
|
|
55
58
|
}
|
|
@@ -62,6 +65,9 @@ class XMLConsistency {
|
|
|
62
65
|
if (name === undefined) {
|
|
63
66
|
issues.push(issue_1.Issue.atRow(file, 1, "Name undefined in XML", this.getMetadata().key, this.conf.severity));
|
|
64
67
|
}
|
|
68
|
+
else if (obj.getDescription() && obj.getDescription().length > 60) {
|
|
69
|
+
issues.push(issue_1.Issue.atRow(file, 1, "Description too long", this.getMetadata().key, this.conf.severity));
|
|
70
|
+
}
|
|
65
71
|
else if (name !== obj.getName().toUpperCase()) {
|
|
66
72
|
issues.push(issue_1.Issue.atRow(file, 1, "Name in XML does not match object", this.getMetadata().key, this.conf.severity));
|
|
67
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.95.
|
|
3
|
+
"version": "2.95.9",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://abaplint.org",
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.34.
|
|
50
|
+
"@microsoft/api-extractor": "^7.34.2",
|
|
51
51
|
"@types/chai": "^4.3.4",
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
53
|
"@types/node": "^18.11.18",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"c8": "^7.12.0",
|
|
58
58
|
"source-map-support": "^0.5.21",
|
|
59
59
|
"ts-json-schema-generator": "^1.2.0",
|
|
60
|
-
"typescript": "^4.9.
|
|
60
|
+
"typescript": "^4.9.5"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"fast-xml-parser": "^4.0.15",
|