Skip to content

Commit

Permalink
Update dojo/tools/hcl_asoc_sast/parser.py
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Neill <[email protected]>
  • Loading branch information
xpert98 and cneill authored Dec 5, 2024
1 parent 923bb46 commit 8c9bdf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/tools/hcl_asoc_sast/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ def get_findings(self, file, test):
description = description + causeitem.text + "\n"

Check failure on line 118 in dojo/tools/hcl_asoc_sast/parser.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E117)

dojo/tools/hcl_asoc_sast/parser.py:118:1: E117 Over-indented
if aitem.tag == "recommendations":
for recitem in aitem:
if recitem.attrib["type"] == "string":
if recitem.text is not None:
if recitem.attrib["type"] == "string" and recitem.text is not None:
recommendations = recommendations + recitem.text + "\n"

Check failure on line 122 in dojo/tools/hcl_asoc_sast/parser.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E117)

dojo/tools/hcl_asoc_sast/parser.py:122:1: E117 Over-indented
elif recitem.attrib["type"] == "object":
codeblock = recitem.iter()
Expand Down

0 comments on commit 8c9bdf7

Please sign in to comment.