Created
October 9, 2014 09:07
-
-
Save quentin7b/0563c4d87c4421ba2439 to your computer and use it in GitHub Desktop.
Custom Android Studio checkstyle.xml for Android
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"> | |
<!-- | |
Checkstyle-Configuration: Android Checks (Android Studio) | |
Description: | |
Slightly modified version of Sun Checks that better matches the default code formatter setting of Eclipse. | |
--> | |
<module name="Checker"> | |
<property name="severity" value="warning"/> | |
<module name="TreeWalker"> | |
<property name="tabWidth" value="4"/> | |
<module name="FileContentsHolder"/> | |
<module name="JavadocMethod"> | |
<property name="suppressLoadErrors" value="true"/> | |
</module> | |
<module name="JavadocType"/> | |
<module name="JavadocVariable"/> | |
<module name="JavadocStyle"/> | |
<module name="ConstantName"/> | |
<module name="LocalFinalVariableName"/> | |
<module name="LocalVariableName"/> | |
<module name="MemberName"/> | |
<module name="MethodName"/> | |
<module name="PackageName"/> | |
<module name="ParameterName"/> | |
<module name="StaticVariableName"/> | |
<module name="TypeName"/> | |
<module name="AvoidStarImport"/> | |
<module name="IllegalImport"/> | |
<module name="RedundantImport"/> | |
<module name="UnusedImports"/> | |
<module name="MethodLength"/> | |
<module name="ParameterNumber"/> | |
<module name="EmptyForIteratorPad"/> | |
<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"/> | |
<module name="ModifierOrder"/> | |
<module name="RedundantModifier"/> | |
<module name="AvoidNestedBlocks"/> | |
<module name="EmptyBlock"/> | |
<module name="LeftCurly"/> | |
<module name="NeedBraces"/> | |
<module name="RightCurly"/> | |
<module name="AvoidInlineConditionals"/> | |
<module name="EmptyStatement"/> | |
<module name="EqualsHashCode"/> | |
<module name="HiddenField"/> | |
<module name="IllegalInstantiation"/> | |
<module name="InnerAssignment"/> | |
<module name="MagicNumber"/> | |
<module name="MissingSwitchDefault"/> | |
<module name="RedundantThrows"> | |
<property name="suppressLoadErrors" value="true"/> | |
</module> | |
<module name="SimplifyBooleanExpression"/> | |
<module name="SimplifyBooleanReturn"/> | |
<module name="DesignForExtension"/> | |
<module name="FinalClass"/> | |
<module name="HideUtilityClassConstructor"/> | |
<module name="InterfaceIsType"/> | |
<module name="VisibilityModifier"/> | |
<module name="ArrayTypeStyle"/> | |
<module name="FinalParameters"/> | |
<module name="TodoComment"> | |
<property name="severity" value="ignore"/> | |
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
</module> | |
<module name="UpperEll"/> | |
<module name="AnnotationUseStyle"/> | |
<module name="MissingDeprecated"/> | |
<module name="MissingOverride"/> | |
<module name="PackageAnnotation"/> | |
<module name="SuppressWarnings"/> | |
</module> | |
<module name="NewlineAtEndOfFile"> | |
<property name="severity" value="ignore"/> | |
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
</module> | |
<module name="Translation"/> | |
<module name="FileLength"/> | |
<module name="FileTabCharacter"/> | |
<module name="RegexpSingleline"> | |
<property name="severity" value="ignore"/> | |
<property name="format" value="\s+$"/> | |
<property name="message" value="Line has trailing spaces."/> | |
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
</module> | |
<module name="SuppressionCommentFilter"/> | |
<module name="SuppressWithNearbyCommentFilter"/> | |
</module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment