Excluding from coverage or duplication
Excluding specific files from code coverage or duplication check can be defined at the organization level for your SonarQube Cloud organization.
This feature is only available in the Enterprise plan.
As an organization admin, you can exclude specific files from code coverage analysis or duplication check at the level of the organization. It means that this analysis scope adjustment applies to all projects in the organization. However, they can be overridden at the project level in the UI or through analysis parameters set on the CI/CD host.
Excluding specific files from the code coverage analysis
To exclude specific files from the code coverage analysis.
Retrieve your organization. See Retrieving your organizations for more details.
Go to Administration > Analysis scope.
In Code coverage > Coverage Exclusions, enter and save a path-matching pattern to define files to be excluded from the code coverage analysis, see Defining matching patternsfor more details.
Excluding specific files from the duplication check
To exclude specific files from the duplication check (detection of identical lines of code):
Retrieve your organization. See Retrieving your organizations for more details.
Go to Administration > Analysis scope.
In Duplication > Duplication Exclusions, enter and save a path-matching pattern to define files to be excluded from the duplication check, see Defining matching patterns for more details.
Last updated
Was this helpful?