Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
eclipse checkstyle checks for android
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!--
Checkstyle-Configuration: Android checkstyle by Enea
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"></property>
<module name="TreeWalker">
<property name="tabWidth" value="4"></property>
<module name="JavadocMethod">
<property name="logLoadErrors" value="true"></property>
<property name="suppressLoadErrors" value="true"></property>
</module>
<module name="JavadocType"></module>
<module name="JavadocVariable"></module>
<module name="JavadocStyle"></module>
<module name="ConstantName"></module>
<module name="LocalFinalVariableName"></module>
<module name="LocalVariableName"></module>
<module name="MemberName">
<metadata name="net.sf.eclipsecs.core.comment" value="only public starts without m"></metadata>
<property name="applyToProtected" value="false"></property>
<property name="applyToPrivate" value="false"></property>
</module>
<module name="MethodName"></module>
<module name="PackageName"></module>
<module name="ParameterName"></module>
<module name="StaticVariableName">
<metadata name="net.sf.eclipsecs.core.comment" value="starts with 's'"></metadata>
<property name="format" value="^[s][a-zA-Z0-9]*$"></property>
</module>
<module name="TypeName"></module>
<module name="AvoidStarImport"></module>
<module name="IllegalImport"></module>
<module name="RedundantImport"></module>
<module name="UnusedImports"></module>
<module name="LineLength">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="MethodLength"></module>
<module name="ParameterNumber"></module>
<module name="EmptyForIteratorPad"></module>
<module name="MethodParamPad"></module>
<module name="NoWhitespaceAfter">
<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"></property>
</module>
<module name="NoWhitespaceBefore"></module>
<module name="OperatorWrap"></module>
<module name="ParenPad"></module>
<module name="TypecastParenPad"></module>
<module name="WhitespaceAfter"></module>
<module name="WhitespaceAround"></module>
<module name="ModifierOrder"></module>
<module name="RedundantModifier"></module>
<module name="AvoidNestedBlocks"></module>
<module name="EmptyBlock"></module>
<module name="LeftCurly"></module>
<module name="NeedBraces"></module>
<module name="RightCurly"></module>
<module name="AvoidInlineConditionals"></module>
<module name="DoubleCheckedLocking"></module>
<module name="EmptyStatement"></module>
<module name="EqualsHashCode"></module>
<module name="HiddenField"></module>
<module name="IllegalInstantiation"></module>
<module name="InnerAssignment"></module>
<module name="MagicNumber"></module>
<module name="MissingSwitchDefault"></module>
<module name="RedundantThrows">
<property name="logLoadErrors" value="true"></property>
<property name="suppressLoadErrors" value="true"></property>
</module>
<module name="SimplifyBooleanExpression"></module>
<module name="SimplifyBooleanReturn"></module>
<module name="DesignForExtension">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="FinalClass"></module>
<module name="HideUtilityClassConstructor"></module>
<module name="InterfaceIsType"></module>
<module name="VisibilityModifier"></module>
<module name="ArrayTypeStyle"></module>
<module name="FinalParameters">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="TodoComment">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="UpperEll"></module>
<module name="MethodLength">
<property name="max" value="40"></property>
</module>
<module name="MemberName">
<metadata name="net.sf.eclipsecs.core.comment" value="non public members should start with m"></metadata>
<property name="applyToPublic" value="false"></property>
<property name="format" value="^[m][a-zA-Z0-9]*$"></property>
</module>
<module name="LineLength">
<property name="max" value="100"></property>
</module>
</module>
<module name="JavadocPackage"></module>
<module name="NewlineAtEndOfFile">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="Translation"></module>
<module name="FileTabCharacter">
<property name="severity" value="ignore"></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
<module name="RegexpSingleline">
<property name="severity" value="ignore"></property>
<property name="format" value="\s+$"></property>
<property name="message" value="Line has trailing spaces."></property>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"></metadata>
</module>
</module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.