Skip to content

Conversation

@leonardo-pilastri-sonarsource
Copy link
Contributor

@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource commented Oct 20, 2025

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

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title New analysis parameter: sonar.java.failOnStackOverflow (true by default) SONARJAVA-5802 New analysis parameter: sonar.java.failOnStackOverflow (true by default) Oct 20, 2025
Copy link
Contributor

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.

Copy link
Contributor

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

@sonarqube-next
Copy link

@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource merged commit 5bfecf7 into master Oct 22, 2025
14 of 15 checks passed
@leonardo-pilastri-sonarsource leonardo-pilastri-sonarsource deleted the lp/should-fail-on-stackoverflow branch October 22, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants