-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sonar hotspots and secure-random sonar hotspot rule #433
Conversation
a741c04
to
8d8952d
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks great!
context.tool_result_files_map.get("sonar", []) | ||
) | ||
return self._lazy_cache | ||
|
||
|
||
def process_sonar_findings(sonar_json_files: list[str]) -> SonarResultSet: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably just use @functools.cache
here and get rid of the _lazy_cache
on the class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I swear I recall there was a reason this was written as is, I think @andrecsilva wrote it originally? because we also posed using @functools.cache at that time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going to merge so I can use this PR to add more sonar codemods, but can come back to this if needed
Overview
Add support for sonar hotspots and the first sonar hotspot, secure-random
Description
Closes #376