@codacy/tools-flawfinder-2 0.2.1 → 0.3.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.
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2067,6 +2067,12 @@ var adapter = {
|
|
|
2067
2067
|
if (ctx.targetFiles.length === 0) {
|
|
2068
2068
|
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, 0);
|
|
2069
2069
|
}
|
|
2070
|
+
if (!(codacyConfig.useLocalConfigurationFile && codacyConfig.localConfigurationFile) && codacyConfig.patterns.length === 0) {
|
|
2071
|
+
ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
|
|
2072
|
+
toolId: TOOL_ID
|
|
2073
|
+
});
|
|
2074
|
+
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
2075
|
+
}
|
|
2070
2076
|
const binary = await resolveBinaryPath(ctx);
|
|
2071
2077
|
const absoluteFiles = ctx.targetFiles.map((f) => import_path.default.resolve(ctx.repositoryRoot, f));
|
|
2072
2078
|
const args = ["--sarif", "--falsepositive", ...absoluteFiles];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-flawfinder-2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
11
|
+
"@codacy/tooling": "0.3.0"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|