Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
Just to be sure I understand correctly. You are asking to exclude getters and setters from test coverage?
If so, this is not possible and even if it was I wouldn’t recommend it. Simple getters and setters are used at some point by more complex code. Knowing that no test uses those getters and setters is good to know. It means that you won’t detect if something is broken when this class is refactored.