|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!DOCTYPE module PUBLIC |
| 3 | + "-//Puppy Crawl//DTD Check Configuration 1.3//EN" |
| 4 | + "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
| 5 | + |
| 6 | +<!-- |
| 7 | +
|
| 8 | + Checkstyle configuration from |
| 9 | + https://github.com/checkstyle/checkstyle/blob/checkstyle-6.1.1/sun_checks.xml |
| 10 | +
|
| 11 | + Removed some checks which had a lot of existing violations. :-( |
| 12 | +
|
| 13 | +--> |
| 14 | + |
| 15 | +<module name="Checker"> |
| 16 | + <!-- |
| 17 | + If you set the basedir property below, then all reported file |
| 18 | + names will be relative to the specified directory. See |
| 19 | + http://checkstyle.sourceforge.net/5.x/config.html#Checker |
| 20 | +
|
| 21 | + <property name="basedir" value="${basedir}"/> |
| 22 | + --> |
| 23 | + |
| 24 | + <!-- Checks whether files end with a new line. --> |
| 25 | + <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> |
| 26 | + <module name="NewlineAtEndOfFile"/> |
| 27 | + |
| 28 | + <!-- Checks that property files contain the same keys. --> |
| 29 | + <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> |
| 30 | + <module name="Translation"/> |
| 31 | + |
| 32 | + <!-- Checks for Size Violations. --> |
| 33 | + <!-- See http://checkstyle.sf.net/config_sizes.html --> |
| 34 | + <module name="FileLength"/> |
| 35 | + |
| 36 | + <!-- Checks for whitespace --> |
| 37 | + <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
| 38 | + <module name="FileTabCharacter"/> |
| 39 | + |
| 40 | + <!-- Miscellaneous other checks. --> |
| 41 | + <!-- See http://checkstyle.sf.net/config_misc.html --> |
| 42 | + <module name="RegexpSingleline"> |
| 43 | + <property name="format" value="\s+$"/> |
| 44 | + <property name="minimum" value="0"/> |
| 45 | + <property name="maximum" value="0"/> |
| 46 | + <property name="message" value="Line has trailing spaces."/> |
| 47 | + </module> |
| 48 | + |
| 49 | + <module name="TreeWalker"> |
| 50 | + |
| 51 | + <!-- Checks for Naming Conventions. --> |
| 52 | + <!-- See http://checkstyle.sf.net/config_naming.html --> |
| 53 | + <module name="ConstantName"/> |
| 54 | + <module name="LocalFinalVariableName"/> |
| 55 | + <module name="LocalVariableName"/> |
| 56 | + <module name="PackageName"/> |
| 57 | + <module name="StaticVariableName"/> |
| 58 | + |
| 59 | + <!-- Checks for imports --> |
| 60 | + <!-- See http://checkstyle.sf.net/config_import.html --> |
| 61 | + <module name="IllegalImport"/> <!-- defaults to sun.* packages --> |
| 62 | + <module name="RedundantImport"/> |
| 63 | + <module name="UnusedImports"/> |
| 64 | + |
| 65 | + <!-- Checks for Size Violations. --> |
| 66 | + <!-- See http://checkstyle.sf.net/config_sizes.html --> |
| 67 | + <module name="MethodLength"/> |
| 68 | + |
| 69 | + <!-- Checks for whitespace --> |
| 70 | + <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
| 71 | + <module name="EmptyForIteratorPad"/> |
| 72 | + <module name="GenericWhitespace"/> |
| 73 | + <module name="MethodParamPad"/> |
| 74 | + <module name="NoWhitespaceAfter"/> |
| 75 | + <module name="NoWhitespaceBefore"/> |
| 76 | + <module name="OperatorWrap"/> |
| 77 | + <module name="ParenPad"/> |
| 78 | + <module name="TypecastParenPad"/> |
| 79 | + <module name="WhitespaceAfter"/> |
| 80 | + |
| 81 | + <!-- Modifier Checks --> |
| 82 | + <!-- See http://checkstyle.sf.net/config_modifiers.html --> |
| 83 | + <module name="ModifierOrder"/> |
| 84 | + |
| 85 | + <!-- Checks for blocks. You know, those {}'s --> |
| 86 | + <!-- See http://checkstyle.sf.net/config_blocks.html --> |
| 87 | + <module name="AvoidNestedBlocks"/> |
| 88 | + <module name="NeedBraces"/> |
| 89 | + |
| 90 | + <!-- Checks for common coding problems --> |
| 91 | + <!-- See http://checkstyle.sf.net/config_coding.html --> |
| 92 | + <module name="EmptyStatement"/> |
| 93 | + <module name="EqualsHashCode"/> |
| 94 | + <module name="IllegalInstantiation"/> |
| 95 | + <module name="InnerAssignment"/> |
| 96 | + <module name="MissingSwitchDefault"/> |
| 97 | + <module name="RedundantThrows"/> |
| 98 | + <module name="SimplifyBooleanExpression"/> |
| 99 | + <module name="SimplifyBooleanReturn"/> |
| 100 | + |
| 101 | + <!-- Checks for class design --> |
| 102 | + <!-- See http://checkstyle.sf.net/config_design.html --> |
| 103 | + <module name="HideUtilityClassConstructor"/> |
| 104 | + <module name="InterfaceIsType"/> |
| 105 | + |
| 106 | + <!-- Miscellaneous other checks. --> |
| 107 | + <!-- See http://checkstyle.sf.net/config_misc.html --> |
| 108 | + <module name="ArrayTypeStyle"/> |
| 109 | + <module name="TodoComment"/> |
| 110 | + <module name="UpperEll"/> |
| 111 | + |
| 112 | + </module> |
| 113 | + |
| 114 | +</module> |
0 commit comments