File tree Expand file tree Collapse file tree
dojo/tools/reversinglabs_spectraassure Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010logger = logging .getLogger (__name__ )
1111
12- WHAT = "ReversingLabs Spectra Assure"
12+ SCAN_TYPE = "ReversingLabs Spectra Assure"
1313
1414
1515class 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
Original file line number Diff line number Diff 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" , "" )
You can’t perform that action at this time.
0 commit comments