@codacy/tools-detekt-1 0.2.1 → 0.3.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/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2669,6 +2669,12 @@ var adapter = {
|
|
|
2669
2669
|
if (ctx.targetFiles.length === 0) {
|
|
2670
2670
|
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, 0);
|
|
2671
2671
|
}
|
|
2672
|
+
if (!(codacyConfig.useLocalConfigurationFile && codacyConfig.localConfigurationFile) && codacyConfig.patterns.length === 0) {
|
|
2673
|
+
ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
|
|
2674
|
+
toolId: TOOL_ID
|
|
2675
|
+
});
|
|
2676
|
+
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
2677
|
+
}
|
|
2672
2678
|
const javaBin = await resolveJavaPath(ctx);
|
|
2673
2679
|
const jarPath = await resolveJarPath(ctx);
|
|
2674
2680
|
if (!jarPath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-detekt-1",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.3.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|