|
|
|
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<module name="Checker"> |
|
<property name="severity" value="warning"/> |
|
|
|
|
|
<module name="FileLength"/> |
|
|
|
<module name="TreeWalker"> |
|
|
|
|
|
<module name="JavadocType"> |
|
<property name="allowUnknownTags" value="true"/> |
|
<message key="javadoc.missing" value="类注释:缺少Javadoc注释。"/> |
|
</module> |
|
|
|
|
|
<module name="JavadocMethod"> |
|
<property name="allowUndeclaredRTE" value="true"/> |
|
|
|
<property name="allowMissingPropertyJavadoc" value="true"/> |
|
<message key="javadoc.missing" value="方法注释:缺少Javadoc注释。"/> |
|
</module> |
|
|
|
|
|
<module name="JavadocVariable"> |
|
<message key="javadoc.missing" value="变量注释:缺少Javadoc注释。"/> |
|
</module> |
|
|
|
|
|
<module name="AnnotationUseStyle"> |
|
|
|
<property name="elementStyle" value="ignore"/> |
|
|
|
<property name="trailingArrayComma" value="ignore"/> |
|
|
|
<property name="closingParens" value="ignore"/> |
|
</module> |
|
|
|
|
|
|
|
<module name="TypeName"> |
|
<property name="tokens" value="CLASS_DEF"/> |
|
</module> |
|
|
|
|
|
<module name="TypeName"> |
|
<property name="format" value="^I[A-Z][a-zA-Z0-9]*$"/> |
|
<property name="tokens" value="INTERFACE_DEF"/> |
|
</module> |
|
|
|
|
|
<module name="MemberName"/> |
|
|
|
<module name="MethodName"/> |
|
|
|
<module name="ParameterName "/> |
|
|
|
<module name="ConstantName"/> |
|
|
|
|
|
|
|
<module name="PackageName"> |
|
<property name="format" value="com\.ttpod\.[a-z]+(\.[a-z][a-z0-9]+)*$"/> |
|
</module> |
|
|
|
|
|
<module name="AvoidStarImport"> |
|
<property name="excludes" value="java.io,java.net,java.lang.Math"/> |
|
|
|
<property name="allowClassImports" value="false"/> |
|
|
|
<property name="allowStaticMemberImports" value="true"/> |
|
</module> |
|
|
|
|
|
<module name="RedundantImport"/> |
|
|
|
|
|
<module name="UnusedImports"/> |
|
|
|
|
|
|
|
<module name="LineLength"> |
|
<property name="max" value="150"/> |
|
</module> |
|
|
|
|
|
<module name="MethodLength"> |
|
<property name="countEmpty" value="false"/> |
|
<property name="tokens" value="METHOD_DEF,CTOR_DEF"/> |
|
<property name="max" value="160"/> |
|
</module> |
|
|
|
|
|
<module name="GenericWhitespace"/> |
|
|
|
|
|
<module name="EmptyForInitializerPad"/> |
|
|
|
|
|
<module name="EmptyStatement"/> |
|
|
|
|
|
<module name="MagicNumber"> |
|
<property name="tokens" value="NUM_DOUBLE, NUM_FLOAT"/> |
|
<property name="ignoreNumbers" value="0,1"/> |
|
<property name="ignoreAnnotation" value="true"/> |
|
</module> |
|
|
|
|
|
<module name="StringLiteralEquality"/> |
|
|
|
|
|
<module name="NestedForDepth"> |
|
<property name="max" value="3"/> |
|
</module> |
|
|
|
|
|
<module name="NestedIfDepth"> |
|
<property name="max" value="5"/> |
|
</module> |
|
|
|
|
|
|
|
|
|
|
|
<module name="MultipleVariableDeclarations"/> |
|
|
|
|
|
<module name="TodoComment"> |
|
<property name="format" value="TODO\W+"/> |
|
</module> |
|
|
|
|
|
<module name="UncommentedMain"> |
|
<property name="excludedClasses" value=".*Main$"/> |
|
</module> |
|
|
|
|
|
<module name="ArrayTypeStyle"/> |
|
|
|
|
|
<module name="LeftCurly"> |
|
<property name="severity" value="warning"/> |
|
<message key="line.previous" value="左侧大括号必须放在前一行代码的行尾,不计入到80个字符内"/> |
|
</module> |
|
|
|
|
|
<module name="RightCurly"> |
|
<property name="severity" value="warning"/> |
|
|
|
<property name="option" value="same"/> |
|
</module> |
|
|
|
|
|
<module name="Regexp"> |
|
<property name="format" value="System\.out\.println"/> |
|
<property name="illegalPattern" value="true"/> |
|
</module> |
|
|
|
|
|
|
|
<module name="EqualsAvoidNull"/> |
|
|
|
|
|
<module name="ThrowsCount"> |
|
<metadata name="net.sf.eclipsecs.core.comment" value="最大异常抛出个数"/> |
|
<property name="max" value="3"/> |
|
</module> |
|
|
|
|
|
<module name="ParameterNumber"> |
|
<property name="max" value="7"/> |
|
</module> |
|
|
|
|
|
<module name="ReturnCount"> |
|
<property name="max" value="3"/> |
|
</module> |
|
|
|
|
|
<module name="NestedTryDepth "> |
|
<property name="max" value="3"/> |
|
</module> |
|
|
|
</module> |
|
</module> |