@codacy/tools-bandit-1 0.6.0 → 0.6.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.
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1020,9 +1020,11 @@ var adapter = {
|
|
|
1020
1020
|
if (!stdout.trim()) {
|
|
1021
1021
|
return (0, import_tooling.buildResult)(TOOL_ID, startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
1022
1022
|
}
|
|
1023
|
+
const jsonStart = stdout.indexOf("{");
|
|
1024
|
+
const jsonPayload = jsonStart === -1 ? stdout : stdout.slice(jsonStart);
|
|
1023
1025
|
let banditOutput;
|
|
1024
1026
|
try {
|
|
1025
|
-
banditOutput = JSON.parse(
|
|
1027
|
+
banditOutput = JSON.parse(jsonPayload);
|
|
1026
1028
|
} catch (err) {
|
|
1027
1029
|
errors.push({
|
|
1028
1030
|
toolId: TOOL_ID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-bandit-1",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Bandit adapter — CLI-mode Python security 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.6.
|
|
11
|
+
"@codacy/tooling": "0.6.1"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|