To exclude a package for SonarCube in spring boot project, we need a add a property in sonar-project.properties file.
Below is the example of this. I want to exclude a package model for SonarCube, so this package will not be scanned. because in this package we have some fields those can be present in other entity also.
So this will give Duplicate code block code smell.
Below is the example of this. I want to exclude a package model for SonarCube, so this package will not be scanned. because in this package we have some fields those can be present in other entity also.
So this will give Duplicate code block code smell.
sonar.exclusions = **/model/*.java
Tags:
Dev