Skip to content

Instantly share code, notes, and snippets.

@ksoichiro
Created January 29, 2012 04:31
Show Gist options
  • Save ksoichiro/1697214 to your computer and use it in GitHub Desktop.
Save ksoichiro/1697214 to your computer and use it in GitHub Desktop.
CheckStyle suppression settings for Android
<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<!-- Turn off all checks for some libraries. -->
<suppress checks="." files="com[\\/]google[\\/]..*.java" />
<!-- Turn off header checks for some libraries. -->
<suppress checks="Header" files=".*[\\/]android[\\/]fastroid[\\/].*\.java"/>
<!-- Allows public fields in entity or form packages. -->
<suppress checks="VisibilityModifier" files=".*[\\/](entity|form)[\\/].*\.java"/>
<!-- Allows magic numbers in entity or form packages. (for "fastroid") -->
<suppress checks="MagicNumber" files=".*[\\/](entity|form)[\\/].*\.java"/>
<suppress checks="[a-zA-Z0-9]*" files="R\.java" />
<suppress checks="." files=".*\.properties" />
</suppressions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment