@abaplint/cli 2.85.41 → 2.85.44
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 +134 -154
- package/build/src/formatters/codeframe.js +4 -4
- package/package.json +5 -5
|
@@ -19,7 +19,7 @@ class CodeFrame {
|
|
|
19
19
|
const builtIssues = this.convertAllIssues(issues).sort(issueSort); // Make sure it is sorted by filename for caching to work
|
|
20
20
|
return [
|
|
21
21
|
...builtIssues.map(i => this.renderIssue(i)),
|
|
22
|
-
(issues.length > 0 ?
|
|
22
|
+
(issues.length > 0 ? chalk_1.default.red(new total_1.Total().output(issues, fileCount)) : chalk_1.default.green(new total_1.Total().output(issues, fileCount))),
|
|
23
23
|
].join("\n");
|
|
24
24
|
}
|
|
25
25
|
convertAllIssues(issues) {
|
|
@@ -48,11 +48,11 @@ class CodeFrame {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
const severityStr = issue.severity === "E"
|
|
51
|
-
?
|
|
52
|
-
:
|
|
51
|
+
? chalk_1.default.red(issue.severity)
|
|
52
|
+
: chalk_1.default.yellow(issue.severity);
|
|
53
53
|
return `[${severityStr}] ${issue.description} (${issue.issueKey}) @ ${issue.location}`
|
|
54
54
|
+ "\n"
|
|
55
|
-
+ code.map(str =>
|
|
55
|
+
+ code.map(str => chalk_1.default.grey(str)).join("\n")
|
|
56
56
|
+ "\n";
|
|
57
57
|
}
|
|
58
58
|
renderLocation(issue) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.85.
|
|
3
|
+
"version": "2.85.44",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abaplint": "./abaplint"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.85.
|
|
42
|
+
"@abaplint/core": "^2.85.44",
|
|
43
43
|
"@types/chai": "^4.3.0",
|
|
44
44
|
"@types/glob": "^7.2.0",
|
|
45
45
|
"@types/minimist": "^1.2.2",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@types/node": "^17.0.21",
|
|
48
48
|
"@types/progress": "^2.0.5",
|
|
49
49
|
"chai": "^4.3.6",
|
|
50
|
-
"chalk": "
|
|
51
|
-
"eslint": "^8.
|
|
50
|
+
"chalk": "^5.0.1",
|
|
51
|
+
"eslint": "^8.11.0",
|
|
52
52
|
"glob": "^7.2.0",
|
|
53
53
|
"json5": "^2.2.0",
|
|
54
54
|
"memfs": "^3.4.1",
|
|
55
55
|
"minimist": "^1.2.5",
|
|
56
|
-
"mocha": "^9.2.
|
|
56
|
+
"mocha": "^9.2.2",
|
|
57
57
|
"progress": "^2.0.3",
|
|
58
58
|
"typescript": "^4.6.2",
|
|
59
59
|
"webpack": "^5.70.0",
|