How to exclude some of the java class for test coverage scan

Could you please share details how to exclude some of the java class as we do have mainframe cobol copybooks which we use only some fields due to that test coverage is minimal. These java class generated from Mainframe Cobol copybooks.

Please refer attched document.

Hi,

use the property sonar.coverage.exclusions, unfortunately it’s not mentioned
in the documentation Narrowing the Focus | SonarQube Docs

see also this thread

Gilbert