Manoj Kumar
Manoj Kumar

Reputation: 289

Sonarqube run analysis without removing existing issues

Issues for the entire project is reported whenever I run analysis for the entire project. But when I run analysis for only the changed files next day the issues of other files are getting deleted.

Is there any way to preserve the issues of other files when I run with -Dsonar.inclusions?

Upvotes: 3

Views: 90

Answers (1)

slartidan
slartidan

Reputation: 21556

SonarQube expects you to analyse all files every time. Depending on the analysed languages this is especially important for the "cross file analysis" (issues raised on one file, because of the changes in another file).

Depending on your language and build environment, you could however consider to split your project into smaller independent projects. If you for example split one big java/maven project into smaller ones and let SonarQube have access to all those dependencies, you will have faster build and analysis times.

Upvotes: 4

Related Questions