Last active
January 4, 2016 03:59
-
-
Save mlainez/8566004 to your computer and use it in GitHub Desktop.
Checkstyle for android development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<module name="TreeWalker"> | |
<!-- Checks for uncommented main() methods (debugging leftovers). --> | |
<!-- See http://checkstyle.sourceforge.net/config_misc.html#UncommentedMain --> | |
<module name="UncommentedMain" /> | |
<!-- Checks that long constants are defined with an upper ell. --> | |
<!-- See http://checkstyle.sourceforge.net/config_misc.html#UpperEll --> | |
<module name="UpperEll" /> | |
<!-- Checks the style of array type definitions. --> | |
<!-- See http://checkstyle.sourceforge.net/config_misc.html#ArrayTypeStyle --> | |
<module name="ArrayTypeStyle" /> | |
<!-- Checks that the outer type name and the file name match. --> | |
<!-- See http://checkstyle.sourceforge.net/config_misc.html#OuterTypeFilename --> | |
<module name="OuterTypeFilename" /> | |
<!-- Validates Javadoc comments to help ensure they are well formed. --> | |
<!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocStyle --> | |
<module name="JavadocStyle" /> | |
<!-- Each of these naming modules validates identifiers for particular | |
code elements. --> | |
<!-- See http://checkstyle.sourceforge.net/config_naming.html --> | |
<module name="ConstantName"> | |
<property name="format" value="^[A-Z][A-Z0-9\$]*(_[A-Z0-9\$]+)*$" /> | |
</module> | |
<module name="LocalFinalVariableName" /> | |
<module name="LocalVariableName" /> | |
<module name="MemberName"> | |
<property name="format" value="^[a-z][a-zA-Z0-9_\$]*$" /> | |
</module> | |
<module name="MethodName" /> | |
<module name="PackageName" /> | |
<module name="ParameterName" /> | |
<module name="StaticVariableName" /> | |
<module name="TypeName" /> | |
<!-- Checks for imports. --> | |
<!-- See http://checkstyle.sourceforge.net/config_imports.html --> | |
<module name="AvoidStarImport" /> | |
<module name="RedundantImport" /> | |
<!-- Checks for whitespace. --> | |
<!-- See http://checkstyle.sourceforge.net/config_whitespace.html --> | |
<module name="GenericWhitespace" /> | |
<module name="MethodParamPad" /> | |
<module name="NoWhitespaceAfter"> | |
<property name="tokens" | |
value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS" /> | |
</module> | |
<module name="NoWhitespaceBefore" /> | |
<module name="OperatorWrap" /> | |
<module name="ParenPad" /> | |
<module name="TypecastParenPad" /> | |
<module name="WhitespaceAfter" /> | |
<module name="WhitespaceAround" /> | |
<!-- Modifier Checks. --> | |
<!-- See http://checkstyle.sourceforge.net/config_modifier.html --> | |
<module name="ModifierOrder" /> | |
<module name="RedundantModifier" /> | |
<!-- Checks for blocks. --> | |
<!-- See http://checkstyle.sourceforge.net/config_blocks.html --> | |
<module name="AvoidNestedBlocks" /> | |
<module name="EmptyBlock" /> | |
<module name="LeftCurly" /> | |
<module name="RightCurly"> | |
<property name="tokens" | |
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_ELSE" /> | |
</module> | |
<!-- Checks for common coding problems. --> | |
<!-- See http://checkstyle.sourceforge.net/config_coding.html --> | |
<module name="CovariantEquals" /> | |
<module name="DefaultComesLast" /> | |
<module name="DoubleCheckedLocking" /> | |
<module name="EmptyStatement" /> | |
<module name="EqualsHashCode" /> | |
<module name="IllegalCatch" /> | |
<module name="InnerAssignment" /> | |
<module name="MissingSwitchDefault" /> | |
<module name="NoClone" /> | |
<module name="NoFinalizer" /> | |
<module name="OneStatementPerLine" /> | |
<module name="ParameterAssignment" /> | |
<module name="RedundantThrows" /> | |
<module name="SimplifyBooleanExpression" /> | |
<module name="SimplifyBooleanReturn" /> | |
<module name="StringLiteralEquality" /> | |
<module name="UnnecessaryParentheses" /> | |
<!-- Checks for class design. --> | |
<!-- See http://checkstyle.sourceforge.net/config_design.html --> | |
<module name="FinalClass" /> | |
<module name="HideUtilityClassConstructor" /> | |
<module name="InterfaceIsType" /> | |
<module name="VisibilityModifier"> | |
<property name="packageAllowed" value="true" /> | |
<property name="protectedAllowed" value="true" /> | |
</module> | |
</module> | |
</module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment