File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4040CSV_OPTS = [CMD ] + util .STD_OPTS + [f"-{ opt .REPORT_FILE_SHORT } " , util .CSV_FILE ]
4141JSON_OPTS = [CMD ] + util .STD_OPTS + [f"-{ opt .REPORT_FILE_SHORT } " , util .JSON_FILE ]
4242
43+ RULE_COL = 1
44+ LANG_COL = 2
4345SEVERITY_COL = 3
4446STATUS_COL = 4
4547DATE_COL = 5
@@ -177,7 +179,8 @@ def test_findings_filter_on_type() -> None:
177179 first = False
178180 continue
179181 if util .SQ .version () >= (10 , 2 , 0 ):
180- assert "SECURITY:" in line [TYPE_COL ] or "RELIABILITY:" in line [TYPE_COL ]
182+ # FIXME: Hack because SonarQube returns rule S2310 in the SECURITY or RELIABILITY although it's maintainability
183+ assert line [RULE_COL ] == "javascript:S2310" or "SECURITY:" in line [TYPE_COL ] or "RELIABILITY:" in line [TYPE_COL ]
181184 else :
182185 assert line [TYPE_COL ] in ("VULNERABILITY" , "BUG" )
183186 util .clean (util .CSV_FILE )
You can’t perform that action at this time.
0 commit comments