@codacy/tools-hadolint-2 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 +26 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -935,15 +935,31 @@ var adapter = {
|
|
|
935
935
|
const codacyBin = import_path.default.join(ctx.toolInstallDir, BINARY);
|
|
936
936
|
const codacyVersion = await getVersionFromBinary(codacyBin);
|
|
937
937
|
if (codacyVersion) {
|
|
938
|
-
ctx.logger.debug("Found codacy-managed binary", {
|
|
939
|
-
|
|
938
|
+
ctx.logger.debug("Found codacy-managed binary", {
|
|
939
|
+
toolId: TOOL_ID,
|
|
940
|
+
version: codacyVersion,
|
|
941
|
+
path: codacyBin
|
|
942
|
+
});
|
|
943
|
+
return {
|
|
944
|
+
available: true,
|
|
945
|
+
version: codacyVersion,
|
|
946
|
+
path: codacyBin,
|
|
947
|
+
installation: "codacy"
|
|
948
|
+
};
|
|
940
949
|
}
|
|
941
950
|
const globalVersion = await getVersionFromBinary(BINARY);
|
|
942
951
|
if (globalVersion) {
|
|
943
952
|
ctx.logger.debug("Found global binary", { toolId: TOOL_ID, version: globalVersion });
|
|
944
|
-
return {
|
|
953
|
+
return {
|
|
954
|
+
available: true,
|
|
955
|
+
version: globalVersion,
|
|
956
|
+
installation: "global"
|
|
957
|
+
};
|
|
945
958
|
}
|
|
946
|
-
ctx.logger.debug("Binary not found", {
|
|
959
|
+
ctx.logger.debug("Binary not found", {
|
|
960
|
+
toolId: TOOL_ID,
|
|
961
|
+
reason: "not in PATH or Codacy install directory"
|
|
962
|
+
});
|
|
947
963
|
return {
|
|
948
964
|
available: false,
|
|
949
965
|
reason: "hadolint binary not found in PATH or Codacy install directory",
|
|
@@ -1146,7 +1162,12 @@ var adapter = {
|
|
|
1146
1162
|
});
|
|
1147
1163
|
}
|
|
1148
1164
|
const durationMs = Date.now() - startMs;
|
|
1149
|
-
ctx.logger.info("Analysis complete", {
|
|
1165
|
+
ctx.logger.info("Analysis complete", {
|
|
1166
|
+
toolId: TOOL_ID,
|
|
1167
|
+
issueCount: issues.length,
|
|
1168
|
+
errorCount: errors.length,
|
|
1169
|
+
durationMs
|
|
1170
|
+
});
|
|
1150
1171
|
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
1151
1172
|
}
|
|
1152
1173
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-hadolint-2",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Hadolint adapter — CLI-mode Dockerfile linter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@codacy/tooling": "0.1.
|
|
11
|
+
"@codacy/tooling": "0.1.1"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|