https://docs.sonarqube.org/pages/viewpage.action?pageId=5312326#app-switcher says “You may disable coverage metrics for some source files by setting sonar.coverage.exclusions.” but that link leads to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/#NarrowingtheFocus-IgnoreCodeCoverage where
sonar.coverage.exclusions is (no longer) documented.
In fact, I cannot find
sonar.coverage.exclusions documented in any current documentation. It used to be documented, e.g. at https://docs.sonarqube.org/display/SONARqube71/Analysis+Parameters.