| 1 | <?xml version="1.0"?> |
|---|
| 2 | <!DOCTYPE module PUBLIC |
|---|
| 3 | "-//Puppy Crawl//DTD Check Configuration 1.1//EN" |
|---|
| 4 | "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> |
|---|
| 5 | |
|---|
| 6 | <!-- Based on Sun coding conventions ... --> |
|---|
| 7 | |
|---|
| 8 | <module name="Checker"> |
|---|
| 9 | |
|---|
| 10 | <!-- TODO: module name="NewlineAtEndOfFile"/ --> |
|---|
| 11 | <module name="TreeWalker"> |
|---|
| 12 | <property name="cacheFile" value="${checkstyle.cache.file}"/> |
|---|
| 13 | |
|---|
| 14 | <!-- Checks for Naming Conventions. --> |
|---|
| 15 | <!-- See http://checkstyle.sf.net/config_naming.html --> |
|---|
| 16 | <!-- TODO: module name="ConstantName"/> |
|---|
| 17 | <module name="LocalFinalVariableName"/> |
|---|
| 18 | <module name="LocalVariableName"/> |
|---|
| 19 | <module name="MemberName"/> |
|---|
| 20 | <module name="MethodName"/> |
|---|
| 21 | <module name="PackageName"/> |
|---|
| 22 | <module name="ParameterName"/> |
|---|
| 23 | <module name="StaticVariableName"/> |
|---|
| 24 | <module name="TypeName"/ --> |
|---|
| 25 | |
|---|
| 26 | <module name="Header"> |
|---|
| 27 | <property name="headerFile" value="${checkstyle.header.file}"/> |
|---|
| 28 | </module> |
|---|
| 29 | |
|---|
| 30 | <!-- Following interprets the header file as regular expressions. --> |
|---|
| 31 | <!-- <module name="RegexpHeader"/> --> |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | <!-- Checks for imports --> |
|---|
| 35 | <!-- See http://checkstyle.sf.net/config_import.html --> |
|---|
| 36 | <!-- TODO: module name="AvoidStarImport"/ --> |
|---|
| 37 | <module name="IllegalImport"/> <!-- defaults to sun.* packages --> |
|---|
| 38 | <module name="RedundantImport"/> |
|---|
| 39 | <module name="UnusedImports"/> |
|---|
| 40 | |
|---|
| 41 | <!-- Checks for Size Violations. --> |
|---|
| 42 | <!-- See http://checkstyle.sf.net/config_sizes.html --> |
|---|
| 43 | <!-- TODO: module name="FileLength"/> |
|---|
| 44 | <module name="LineLength"> |
|---|
| 45 | <property name="max" value="120"/> |
|---|
| 46 | </module> |
|---|
| 47 | <module name="MethodLength"/> |
|---|
| 48 | <module name="ParameterNumber"/ --> |
|---|
| 49 | |
|---|
| 50 | <!-- Checks for whitespace --> |
|---|
| 51 | <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
|---|
| 52 | <!-- TODO: module name="EmptyForIteratorPad"/ --> |
|---|
| 53 | <!-- complains about new String[] { "" }: module name="NoWhitespaceAfter"/ --> |
|---|
| 54 | <!-- TODO: module name="NoWhitespaceBefore"/> |
|---|
| 55 | <module name="OperatorWrap"/> |
|---|
| 56 | <module name="ParenPad"/> |
|---|
| 57 | <module name="TypecastParenPad"/> |
|---|
| 58 | <module name="TabCharacter"/> |
|---|
| 59 | <module name="WhitespaceAfter"/> |
|---|
| 60 | <module name="WhitespaceAround"/ --> |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | <!-- Modifier Checks --> |
|---|
| 64 | <!-- See http://checkstyle.sf.net/config_modifiers.html --> |
|---|
| 65 | <!-- TODO: module name="ModifierOrder"/ --> |
|---|
| 66 | <!-- TODO: module name="RedundantModifier"/ --> |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | <!-- Checks for blocks. You know, those {}'s --> |
|---|
| 70 | <!-- See http://checkstyle.sf.net/config_blocks.html --> |
|---|
| 71 | <!-- TODO: module name="AvoidNestedBlocks"/> |
|---|
| 72 | <module name="EmptyBlock"/> |
|---|
| 73 | <module name="LeftCurly"/> |
|---|
| 74 | <module name="NeedBraces"/> |
|---|
| 75 | <module name="RightCurly"/--> |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | <!-- Checks for common coding problems --> |
|---|
| 79 | <!-- See http://checkstyle.sf.net/config_coding.html --> |
|---|
| 80 | <!-- TODO: module name="DoubleCheckedLocking"/--> |
|---|
| 81 | <!-- TODO: module name="EmptyStatement"/ --> |
|---|
| 82 | <!-- TODO: module name="EqualsHashCode"/ --> |
|---|
| 83 | <!-- complains about this.foo = foo in constructors: module name="HiddenField"/ --> |
|---|
| 84 | <module name="IllegalInstantiation"/> |
|---|
| 85 | <!-- TODO: module name="InnerAssignment"/--> |
|---|
| 86 | <!-- complains about FOO = 60* 1000: module name="MagicNumber"/ --> |
|---|
| 87 | <!-- TODO: module name="MissingSwitchDefault"/> |
|---|
| 88 | <module name="RedundantThrows"/> |
|---|
| 89 | <module name="SimplifyBooleanExpression"/> |
|---|
| 90 | <module name="SimplifyBooleanReturn"/ --> |
|---|
| 91 | |
|---|
| 92 | <!-- Checks for class design --> |
|---|
| 93 | <!-- See http://checkstyle.sf.net/config_design.html --> |
|---|
| 94 | <!-- complains about static only classes with implicit constructor: |
|---|
| 95 | module name="HideUtilityClassConstructor"/--> |
|---|
| 96 | <!-- TODO: module name="InterfaceIsType"/ --> |
|---|
| 97 | <!-- complains about public fields: module name="VisibilityModifier"/ --> |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | <!-- Miscellaneous other checks. --> |
|---|
| 101 | <!-- See http://checkstyle.sf.net/config_misc.html --> |
|---|
| 102 | <module name="ArrayTypeStyle"/> |
|---|
| 103 | <module name="UpperEll"/> |
|---|
| 104 | |
|---|
| 105 | </module> |
|---|
| 106 | |
|---|
| 107 | </module> |
|---|