Analysis of Sonarqube operation without fixing existing problems

Project-wide questions are reported whenever I run a project-wide analysis. But when I run analysis only on changed files the next day, problems with other files are removed.

Is there a way to keep problems with other files running from -Dsonar.inclusions

?

+3


source to share


1 answer


SonarQube expects you to analyze all files every time. Depending on the languages ​​analyzed, this is especially important for "cross-file analysis" (issues raised in one file due to changes in another file).



Depending on your language and build environment, you might consider splitting your project into smaller, independent projects. If you, for example, split one large java / maven project into smaller ones and let SonarQube access all of these dependencies, you have faster build and analysis times.

+4


source







All Articles