Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExamples
languagebash
# Exclude all classes ending by "Bean"
# Matches org.sonar.api.MyBean.java, org.sonar.util.MyOtherBean.java, org.sonar.util.MyDTO.java, etc.
sonar.exclusions=**/*Bean.java,**/*DTO.java

# Exclude all classes in the "org.sonar" package
# Matches org.sonar.MyClass.java, org.sonar.MyOtherClass.java
# But does not match org.sonar.util.MyClassUtil.java
sonar.exclusions=org/sonar/*.java

# Exclude all COBOL programs in the "bank" direcotrydirectory and its sub-directories
# Matches bank/ZTR00021.cbl, bank/data/CBR00354.cbl
sonar.exclusions=bank/**/*.cbl

...