@codacy/tools-flawfinder-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 +16 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1924,12 +1924,22 @@ var adapter = {
1924
1924
  async checkAvailability(ctx) {
1925
1925
  ctx.logger.debug("Checking availability", { toolId: TOOL_ID });
1926
1926
  const pythonInfo = await (0, import_tooling.findPython)(void 0, ctx.logger).catch(() => null);
1927
- const dependencies = pythonInfo ? [{ name: "Python", available: true, version: pythonInfo.version, installation: "global" }] : [{ name: "Python", available: false, reason: "Python 3 not found" }];
1927
+ const dependencies = pythonInfo ? [
1928
+ {
1929
+ name: "Python",
1930
+ available: true,
1931
+ version: pythonInfo.version,
1932
+ installation: "global"
1933
+ }
1934
+ ] : [{ name: "Python", available: false, reason: "Python 3 not found" }];
1928
1935
  const venvDir = (0, import_tooling.getVenvDir)(ctx.globalDir, adapter.id);
1929
1936
  const venvBinPath = import_path.default.join(venvDir, "bin", BINARY);
1930
1937
  const venvVersion = await getVersionFromBinary(venvBinPath);
1931
1938
  if (venvVersion) {
1932
- ctx.logger.debug("Found flawfinder in codacy venv", { toolId: TOOL_ID, version: venvVersion });
1939
+ ctx.logger.debug("Found flawfinder in codacy venv", {
1940
+ toolId: TOOL_ID,
1941
+ version: venvVersion
1942
+ });
1933
1943
  return {
1934
1944
  available: true,
1935
1945
  version: venvVersion,
@@ -1940,7 +1950,10 @@ var adapter = {
1940
1950
  }
1941
1951
  const globalVersion = await getVersionFromBinary(BINARY);
1942
1952
  if (globalVersion) {
1943
- ctx.logger.debug("Found flawfinder on global PATH", { toolId: TOOL_ID, version: globalVersion });
1953
+ ctx.logger.debug("Found flawfinder on global PATH", {
1954
+ toolId: TOOL_ID,
1955
+ version: globalVersion
1956
+ });
1944
1957
  return {
1945
1958
  available: true,
1946
1959
  version: globalVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-flawfinder-2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Flawfinder adapter — CLI-mode C/C++ security analyzer",
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)",