@codacy/tools-detekt-1 0.1.0 → 0.1.1
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/dist/index.js +17 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2435,7 +2435,11 @@ function ruleMetadata(ruleId) {
|
|
|
2435
2435
|
var xmlParser = new import_fast_xml_parser.XMLParser({
|
|
2436
2436
|
ignoreAttributes: false,
|
|
2437
2437
|
attributeNamePrefix: "@_",
|
|
2438
|
-
isArray: (name) => name === "file" || name === "error"
|
|
2438
|
+
isArray: (name) => name === "file" || name === "error",
|
|
2439
|
+
processEntities: {
|
|
2440
|
+
enabled: true,
|
|
2441
|
+
maxTotalExpansions: 1e5
|
|
2442
|
+
}
|
|
2439
2443
|
});
|
|
2440
2444
|
function getLineContent(lines, lineNumber) {
|
|
2441
2445
|
return lines[lineNumber - 1] ?? "";
|
|
@@ -2541,7 +2545,12 @@ var adapter = {
|
|
|
2541
2545
|
const javaBin = import_path.default.join(jreDir, "bin", "java");
|
|
2542
2546
|
try {
|
|
2543
2547
|
await import_promises.default.access(javaBin);
|
|
2544
|
-
dependencies[0] = {
|
|
2548
|
+
dependencies[0] = {
|
|
2549
|
+
name: "Java",
|
|
2550
|
+
available: true,
|
|
2551
|
+
version: "17",
|
|
2552
|
+
installation: "codacy"
|
|
2553
|
+
};
|
|
2545
2554
|
} catch {
|
|
2546
2555
|
return {
|
|
2547
2556
|
available: false,
|
|
@@ -2804,7 +2813,12 @@ var adapter = {
|
|
|
2804
2813
|
await cleanupTmpDir(tmpDir);
|
|
2805
2814
|
}
|
|
2806
2815
|
const durationMs = Date.now() - startMs;
|
|
2807
|
-
ctx.logger.info("Analysis complete", {
|
|
2816
|
+
ctx.logger.info("Analysis complete", {
|
|
2817
|
+
toolId: TOOL_ID,
|
|
2818
|
+
issueCount: issues.length,
|
|
2819
|
+
errorCount: errors.length,
|
|
2820
|
+
durationMs
|
|
2821
|
+
});
|
|
2808
2822
|
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
2809
2823
|
}
|
|
2810
2824
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-detekt-1",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "detekt adapter — CLI-mode Kotlin static analyzer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"fast-xml-parser": "^
|
|
12
|
-
"@codacy/tooling": "0.1.
|
|
11
|
+
"fast-xml-parser": "^5.5.6",
|
|
12
|
+
"@codacy/tooling": "0.1.1"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|