@codacy/tools-cppcheck-2 0.14.0 → 0.15.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 +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4039,7 +4039,10 @@ var adapter = {
4039
4039
  for (const addon of requiredAddons(codacyConfig.patterns)) {
4040
4040
  args.push(`--addon=${addon}`);
4041
4041
  }
4042
- args.push(...absoluteFiles);
4042
+ await import_promises.default.mkdir(ctx.generatedConfigDir, { recursive: true });
4043
+ const fileListPath = import_path.default.join(ctx.generatedConfigDir, "cppcheck-files.txt");
4044
+ await import_promises.default.writeFile(fileListPath, absoluteFiles.join("\n"), "utf-8");
4045
+ args.push(`--file-list=${fileListPath}`);
4043
4046
  try {
4044
4047
  const { stderr, exitCode } = await (0, import_tooling.spawnTool)(binary, args, {
4045
4048
  cwd: ctx.repositoryRoot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-cppcheck-2",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Cppcheck adapter — CLI-mode C/C++ 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.14.0"
12
+ "@codacy/tooling": "0.15.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",