Excluding from coverage or duplication
Exclude specific files from your project's code coverage analysis or duplication checks.
You can exclude specific files from your project’s code coverage analysis or duplication check analysis (detection of identical lines of code).
Excluding specific files from the code coverage analysis
You can perform the setup in SonarQube UI (this requires that you have the project’s Administer permission) or on the CI/CD host. A parameter set on the CI/CD host has precedence over any UI setting of the same parameter.
Excluding specific files from the duplication check
You can perform the setup in SonarQube UI (this requires that you have the project’s Administer permission) or on the CI/CD host. A parameter set on the CI/CD host has precedence over any UI setting of the same parameter.
Related pages
Other adjustments for analysis scope
Adjusting the analysis scopeIntroduction
Last updated
Was this helpful?