Skip to content

Commit 6591bd0

Browse files
committed
make linter happy
1 parent 90524b1 commit 6591bd0

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

dojo/tools/mayhem/parser.py

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,24 @@
77

88
from dojo.models import Finding
99
from dojo.tools.parser_test import ParserTest
10-
11-
from dojo.tools.sarif.parser import SarifParser
12-
from dojo.tools.sarif.parser import (
13-
get_codeFlowsDescription,
14-
get_snippet,
15-
get_title,
16-
get_severity,
17-
get_references,
18-
cve_try,
19-
get_rule_cwes,
20-
get_result_cwes_properties,
21-
cvss_to_severity,
22-
get_properties_tags,
23-
get_fingerprints_hashes,
24-
get_rules
25-
)
26-
10+
from dojo.tools.sarif.parser import (SarifParser, cve_try, cvss_to_severity,
11+
get_codeFlowsDescription,
12+
get_fingerprints_hashes,
13+
get_properties_tags, get_references,
14+
get_result_cwes_properties, get_rule_cwes,
15+
get_rules, get_severity, get_snippet,
16+
get_title)
2717

2818
logger = logging.getLogger(__name__)
2919

3020
CWE_REGEX = r"cwe-\d+"
3121

3222

3323
class MayhemParser(SarifParser):
24+
3425
"""
3526
Mayhem SARIF Parser
27+
3628
This class extends the existing SARIF parser, but with some minor
3729
modifications to better support the structure of Mayhem SARIF reports.
3830
"""
@@ -81,7 +73,7 @@ def __get_items_from_run(self, run):
8173
if result_items:
8274
items.extend(result_items)
8375
return items
84-
76+
8577
def __get_last_invocation_date(self, data):
8678
invocations = data.get("invocations", [])
8779
if len(invocations) == 0:

0 commit comments

Comments
 (0)