[ACCEPTED]-Disable all checkstyle checks for a specific java package-checkstyle

Accepted answer
Score: 19

Just use the suppression:

<suppress checks="." files="com[\\/]mydomain[\\/]abc[\\/]xyz[\\/]jaxws[\\/]managed[\\/]"/>

Alternatively, I 5 would recommend only passing the files you 4 want checked to Checkstyle. For example, if 3 you are using ANT, use a to specify the 2 files to process, and use to specify files 1 to ignore.

For example:

<fileset dir="src">
  <include name="**/*.java"/>
  <exclude name="com/mycompany/abc/service/jaxws/service/*.java"/>

More Related questions