@codacy/tools-detekt-1 0.21.0 → 0.23.0
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/README.md +1 -1
- package/dist/index.js +13 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ curl -L -o /tmp/codacy-detekt-test-tools/detekt-cli-1.23.8-all.jar \
|
|
|
67
67
|
`InjectDispatcher` carry no tag and are matched by their bare rule name (detekt pattern IDs
|
|
68
68
|
have no tool prefix).
|
|
69
69
|
|
|
70
|
-
- detekt requires Java 8+ as a runtime. The adapter uses `ensureJre()` to download Adoptium Temurin JDK
|
|
70
|
+
- detekt requires Java 8+ as a runtime. The adapter uses `ensureJre()` to download Adoptium Temurin JDK 21 if no system Java is found.
|
|
71
71
|
- The detekt CLI JAR is an all-in-one fat JAR downloaded from GitHub releases to `ctx.toolInstallDir`.
|
|
72
72
|
- Output format is Checkstyle 4.3 XML written to a temp file via `--report xml:<path>`.
|
|
73
73
|
- `--base-path <repoRoot>` ensures file paths in the XML are relative to the repository root.
|
package/dist/index.js
CHANGED
|
@@ -2971,7 +2971,7 @@ var adapter = {
|
|
|
2971
2971
|
{
|
|
2972
2972
|
name: "Java",
|
|
2973
2973
|
versionRange: JAVA_VERSION_RANGE,
|
|
2974
|
-
preferredVersion: "
|
|
2974
|
+
preferredVersion: "21",
|
|
2975
2975
|
checkCommand: "java -version"
|
|
2976
2976
|
}
|
|
2977
2977
|
],
|
|
@@ -3045,6 +3045,18 @@ var adapter = {
|
|
|
3045
3045
|
ctx.logger.info(`Downloading detekt-formatting plugin JAR...`);
|
|
3046
3046
|
await (0, import_tooling.downloadJar)(FORMATTING_JAR_URL, ctx.toolInstallDir, FORMATTING_JAR_NAME, ctx.logger);
|
|
3047
3047
|
ctx.logger.info(`Installed detekt-formatting plugin`);
|
|
3048
|
+
await (0, import_tooling.pruneSupersededArtifacts)(
|
|
3049
|
+
ctx.toolInstallDir,
|
|
3050
|
+
JAR_NAME,
|
|
3051
|
+
(name) => /^detekt-cli-.*-all\.jar$/.test(name),
|
|
3052
|
+
ctx.logger
|
|
3053
|
+
);
|
|
3054
|
+
await (0, import_tooling.pruneSupersededArtifacts)(
|
|
3055
|
+
ctx.toolInstallDir,
|
|
3056
|
+
FORMATTING_JAR_NAME,
|
|
3057
|
+
(name) => /^detekt-formatting-.*\.jar$/.test(name),
|
|
3058
|
+
ctx.logger
|
|
3059
|
+
);
|
|
3048
3060
|
return { success: true, installedPath: jarPath, installedVersion: DETEKT_VERSION };
|
|
3049
3061
|
} catch (err) {
|
|
3050
3062
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-detekt-1",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "detekt adapter — CLI-mode Kotlin static analyzer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"fast-xml-parser": "^5.5.6",
|
|
12
|
-
"@codacy/tooling": "0.
|
|
12
|
+
"@codacy/tooling": "0.23.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|