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.src/main/java/org/sonar" packagedirectory
# Matches org.sonar.src/main/java/org/sonar/MyClass.java, org.sonar.src/main/java/org/sonar/MyOtherClass.java
# But does not match org.sonar.util.src/main/java/org/sonar/util/MyClassUtil.java
sonar.exclusions=org/sonar/*

# Exclude all COBOL programs in the "bank" directory and its sub-directories
# Matches bank/ZTR00021.cbl, bank/data/CBR00354.cbl, bank/data/REM012345.cob
sonar.exclusions=bank/**/*
# Exclude all COBOL programs in the "bank" directory and its sub-directories whose extension is .cbl
# Matches bank/ZTR00021.cbl, bank/data/CBR00354.cbl
sonar.exclusions=bank/**/*.cbl