File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def from_sarif(
4545 ) -> Self :
4646 rule_id = cls .extract_rule_id (sarif_result , sarif_run , truncate_rule_id )
4747 text_for_rule = get_text_for_rule (rule_id , sarif_run )
48- finding_msg = f""" { sarif_result ['message' ]['text' ]} \n { text_for_rule } "" "
48+ finding_msg = f"{ sarif_result ['message' ]['text' ]} \n { text_for_rule } "
4949 return cls (
5050 rule_id = rule_id ,
5151 locations = cls .extract_locations (sarif_result ),
@@ -87,5 +87,5 @@ def get_text_for_rule(rule_id: str, sarif_run: dict) -> str:
8787 for ext in sarif_run ["tool" ]["extensions" ]:
8888 for rule in ext .get ("rules" , []):
8989 if rule ["id" ] == rule_id :
90- return f"{ rule [" fullDescription" ][ " text" ]} \n { rule [" help" ][ " text" ]} "
90+ return f"{ rule [' fullDescription' ][ ' text' ]} \n { rule [' help' ][ ' text' ]} "
9191 return ""
You can’t perform that action at this time.
0 commit comments