Narrowing the Focus - SonarQube Documentation - SonarQube
If SonarQube's results aren't relevant, developers will push back on using it. That's why configuring precisely what to analyze for each project is a very important step. Doing so allows you to remove noise, like the issues and duplications marked on generated code, or the issues from rules that aren't relevant for certain types of objects.
SonarQube gives you several options for configuring exactly what will be analyzed. You can
- completely ignore some files or directories
- exclude files/directories from Issue detection (specific rules or all of them) but analyze all other aspects
- exclude files/directories from Duplication detection but analyze all other aspects
- exclude files/directories from Coverage calculations but analyze all other aspects
You can make these changes globally or at a project level. At both levels, the navigation path is the same: Administration > General Settings > Analysis Scope.
Read full article from Narrowing the Focus - SonarQube Documentation - SonarQube
No comments:
Post a Comment