Skip to content

Commit 40a0ddb

Browse files
committed
remove TODO; fix scan type name
1 parent 5311b14 commit 40a0ddb

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

dojo/tools/reversinglabs_spectraassure/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
logger = logging.getLogger(__name__)
1111

12-
WHAT = "ReversingLabs Spectra Assure"
12+
SCAN_TYPE = "ReversingLabs Spectra Assure"
1313

1414

1515
class ReversinglabsSpectraassureParser:
@@ -72,13 +72,13 @@ def _one_finding(
7272
# --------------------------------------------
7373
# PUBLIC
7474
def get_scan_types(self) -> list[str]:
75-
return [WHAT]
75+
return [SCAN_TYPE]
7676

7777
def get_label_for_scan_types(self, scan_type: str) -> str:
7878
return scan_type
7979

8080
def get_description_for_scan_types(self, scan_type: str) -> str:
81-
if scan_type == WHAT:
81+
if scan_type == SCAN_TYPE:
8282
return "Import the SpectraAssure report.rl.json file."
8383
return f"Unknown Scan Type; {scan_type}"
8484

dojo/tools/reversinglabs_spectraassure/rlJsonInfo/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ def _make_new_cin(
340340
cin.score = score
341341
cin.score_severity = self._score_to_severity(score=score)
342342

343-
# TODO: tags
344343
cin.tags = self._get_tags_from_cve(this_cve)
345344
cin.impact = self._make_impact_from_tags(cin.tags, cin.impact)
346345

@@ -397,7 +396,7 @@ def _do_one_cve_component_dependency(
397396

398397
# should be constant over multiple re-scans (repeatable)
399398
# see: https://github.com/DefectDojo/django-DefectDojo/pull/12463
400-
# TODO: use component sha256 + dep.name, dep version + cve
399+
# use component sha256 + dep.name, dep version + cve
401400

402401
dep_purl = dependency.get("purl", "")
403402
dep_name = dependency.get("product", "")

0 commit comments

Comments
 (0)