Skip to content

Commit

Permalink
Use proper finding IDs for sonar and semgrep SARIF
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Jan 9, 2025
1 parent 3b74eb9 commit 3999240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/codemodder/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def from_sarif(
)

@classmethod
@abstractmethod
def rule_url_from_id(cls, result: dict, run: dict, rule_id: str) -> str:
raise NotImplementedError

Expand Down
2 changes: 1 addition & 1 deletion src/core_codemods/sonar/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def from_result(cls, result: dict) -> Self:
locations=locations,
codeflows=all_flows,
finding=Finding(
id=rule_id,
id=finding_id,
rule=Rule(
id=rule_id,
name=name,
Expand Down

0 comments on commit 3999240

Please sign in to comment.