-
Notifications
You must be signed in to change notification settings - Fork 716
SONARJAVA-5802 New analysis parameter: sonar.java.failOnStackOverflow (true by default) #5323
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
SONARJAVA-5802 New analysis parameter: sonar.java.failOnStackOverflow (true by default) #5323
Conversation
6f7a81d to
08f6d26
Compare
dorian-burihabwa-sonarsource
left a comment
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.
The change looks good but I still have a couple of nitpicks around the name of the parameter and potential documentation challenges.
java-frontend/src/main/java/org/sonar/java/SonarComponents.java
Outdated
Show resolved
Hide resolved
java-frontend/src/test/java/org/sonar/java/ast/JavaAstScannerTest.java
Outdated
Show resolved
Hide resolved
java-frontend/src/test/java/org/sonar/java/ast/JavaAstScannerTest.java
Outdated
Show resolved
Hide resolved
java-frontend/src/main/java/org/sonar/java/SonarComponents.java
Outdated
Show resolved
Hide resolved
dorian-burihabwa-sonarsource
left a comment
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.
LGTM 👍🏿 I would just change the name of the method source providing arguments to make it easier to lookup
java-frontend/src/test/java/org/sonar/java/ast/JavaAstScannerTest.java
Outdated
Show resolved
Hide resolved
|




SONARJAVA-5802
Part of MMF-5028
This PR aims to introduce a new analysis parameter specific to SonarJava, to allow the analysis to graciously handle StackOverflow errors and continue through the analysis.
The main reason for this new option (which does not change the default behavior of the analyzer) is to allow large codebases of AI-generated code to run through a complete analysis in order to get the results and re-iterate in what could be an agentic workflow.
This change should enable external tools to benefit more from the analyzer