Manual:Coding conventions/Java/checkstyle.xml



<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

              

<module name="Indentation"> <property name="basicOffset" value="4" /> <property name="caseIndent" value="0" /> <module name="LineLength"> <property name="max" value="160" /> <module name="MethodParamPad" /> <module name="NoWhitespaceAfter" /> <module name="NoWhitespaceBefore" /> <module name="ParenPad" /> <module name="TypecastParenPad"> <property name="option" value="nospace" /> <module name="WhitespaceAfter"> <property name="tokens" value="COMMA, SEMI" /> <module name="WhitespaceAround"> <property name="allowEmptyConstructors" value="true" /> <property name="allowEmptyMethods" value="true" /> <property name="allowEmptyTypes" value="true" /> <property name="allowEmptyLoops" value="true" /> <module name="ModifierOrder" /> <module name="RedundantModifier" /> <module name="EmptyBlock"> <property name="option" value="text" /> <module name="LeftCurly"> <property name="maxLineLength" value="120" /> <module name="RightCurly" /> <module name="AvoidNestedBlocks"> <property name="allowInSwitchCase" value="true" /> <module name="EmptyStatement" /> <module name="UpperEll" /> <module name="ArrayTypeStyle" />

<module name="PackageName"> <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$" /> <module name="TypeName" /> <module name="ConstantName"> <property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*|log)$" /> <module name="MemberName" /> <module name="LocalFinalVariableName" /> <module name="LocalVariableName" /> <module name="ParameterName" /> <module name="StaticVariableName" /> <module name="UnnecessaryParentheses" /> <module name="PackageDeclaration" />

<module name="AvoidStarImport" /> <module name="IllegalImport" /> <module name="RedundantImport" /> <module name="UnusedImports" />

<module name="CovariantEquals" /> <module name="EqualsHashCode" /> <module name="InnerAssignment" /> <module name="MissingSwitchDefault" /> <module name="ModifiedControlVariable" /> <module name="SimplifyBooleanExpression" /> <module name="SimplifyBooleanReturn" /> <module name="StringLiteralEquality" /> <module name="SuperClone" /> <module name="SuperFinalize" /> <module name="IllegalCatch" /> <module name="IllegalThrows" /> <module name="ExplicitInitialization" /> <module name="DefaultComesLast" /> <module name="FallThrough" /> <module name="MultipleVariableDeclarations" /> <module name="VisibilityModifier" /> <module name="FinalClass" /> <module name="HideUtilityClassConstructor" /> <module name="MutableException" /> <module name="UncommentedMain"> <property name="excludedClasses" value="org\.wikidata\.query\.rdf\.tool\..*" />

<module name="ClassFanOutComplexity" /> <module name="CyclomaticComplexity" /> <module name="NPathComplexity" />

<module name="NewlineAtEndOfFile" /> <module name="RegexpSingleline"> <property name="format" value="\s+$" /> <property name="message" value="Line has trailing spaces." />