Skip to content

Commit a601ef3

Browse files
committed
Fixes problems raised by Ruff Linter
Specifically, this fixes Q000, F821 and F541 identified previously on lines 126, 128 and 130
1 parent f27cd82 commit a601ef3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

dojo/tools/checkov/parser.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ def get_item(vuln, test, check_type):
121121

122122
if "description" in vuln:
123123
description += f"\n{vuln['description']}\n"
124-
124+
125+
mitigation = ""
125126
if "benchmarks" in vuln:
126-
bms = vuln['benchmarks'].keys()
127+
bms = vuln["benchmarks"].keys()
127128
if len(bms) > 0:
128-
mitigation += f"\nBenchmarks:\n"
129+
mitigation += "\nBenchmarks:\n"
129130
for bm in bms:
130-
for gl in vuln['benchmarks'][bm]:
131+
for gl in vuln["benchmarks"][bm]:
131132
mitigation += f"- {bm} # {gl['name']} : {gl['description']}\n"
132133

133134
file_path = vuln.get("file_path", None)

0 commit comments

Comments
 (0)