@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.
Files changed (2) hide show
  1. package/dist/index.js +26 -5
  2. 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", { toolId: TOOL_ID, version: codacyVersion, path: codacyBin });
939
- return { available: true, version: codacyVersion, path: codacyBin, installation: "codacy" };
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 { available: true, version: globalVersion, installation: "global" };
953
+ return {
954
+ available: true,
955
+ version: globalVersion,
956
+ installation: "global"
957
+ };
945
958
  }
946
- ctx.logger.debug("Binary not found", { toolId: TOOL_ID, reason: "not in PATH or Codacy install directory" });
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", { toolId: TOOL_ID, issueCount: issues.length, errorCount: errors.length, durationMs });
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.0",
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.0"
11
+ "@codacy/tooling": "0.1.1"
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",