@codacy/tools-shellcheck-0 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +26 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4071,15 +4071,31 @@ var adapter = {
4071
4071
  const codacyBin = import_path.default.join(ctx.toolInstallDir, BINARY);
4072
4072
  const codacyVersion = await getVersionFromBinary(codacyBin);
4073
4073
  if (codacyVersion) {
4074
- ctx.logger.debug("Found codacy-managed binary", { toolId: TOOL_ID, version: codacyVersion, path: codacyBin });
4075
- return { available: true, version: codacyVersion, path: codacyBin, installation: "codacy" };
4074
+ ctx.logger.debug("Found codacy-managed binary", {
4075
+ toolId: TOOL_ID,
4076
+ version: codacyVersion,
4077
+ path: codacyBin
4078
+ });
4079
+ return {
4080
+ available: true,
4081
+ version: codacyVersion,
4082
+ path: codacyBin,
4083
+ installation: "codacy"
4084
+ };
4076
4085
  }
4077
4086
  const globalVersion = await getVersionFromBinary(BINARY);
4078
4087
  if (globalVersion) {
4079
4088
  ctx.logger.debug("Found global binary", { toolId: TOOL_ID, version: globalVersion });
4080
- return { available: true, version: globalVersion, installation: "global" };
4089
+ return {
4090
+ available: true,
4091
+ version: globalVersion,
4092
+ installation: "global"
4093
+ };
4081
4094
  }
4082
- ctx.logger.debug("Binary not found", { toolId: TOOL_ID, reason: "not in PATH or Codacy install directory" });
4095
+ ctx.logger.debug("Binary not found", {
4096
+ toolId: TOOL_ID,
4097
+ reason: "not in PATH or Codacy install directory"
4098
+ });
4083
4099
  return {
4084
4100
  available: false,
4085
4101
  reason: "shellcheck binary not found in PATH or Codacy install directory",
@@ -4272,7 +4288,12 @@ var adapter = {
4272
4288
  });
4273
4289
  }
4274
4290
  const durationMs = Date.now() - startMs;
4275
- ctx.logger.info("Analysis complete", { toolId: TOOL_ID, issueCount: issues.length, errorCount: errors.length, durationMs });
4291
+ ctx.logger.info("Analysis complete", {
4292
+ toolId: TOOL_ID,
4293
+ issueCount: issues.length,
4294
+ errorCount: errors.length,
4295
+ durationMs
4296
+ });
4276
4297
  return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
4277
4298
  }
4278
4299
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-shellcheck-0",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "ShellCheck adapter — CLI-mode shell script 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.2.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",