1+ <?xml version =" 1.0" ?>
2+ <!DOCTYPE module PUBLIC
3+ "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
4+ "https://checkstyle.org/dtds/configuration_1_3.dtd">
5+
6+ <!--
7+ Licensed to the Apache Software Foundation (ASF) under one
8+ or more contributor license agreements. See the NOTICE file
9+ distributed with this work for additional information
10+ regarding copyright ownership. The ASF licenses this file
11+ to you under the Apache License, Version 2.0 (the
12+ "License"); you may not use this file except in compliance
13+ with the License. You may obtain a copy of the License at
14+
15+ http://www.apache.org/licenses/LICENSE-2.0
16+
17+ Unless required by applicable law or agreed to in writing,
18+ software distributed under the License is distributed on an
19+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+ KIND, either express or implied. See the License for the
21+ specific language governing permissions and limitations
22+ under the License.
23+ -->
24+
25+ <module name =" Checker" >
26+ <property name =" charset" value =" UTF-8" />
27+ <property name =" severity" value =" warning" />
28+ <property name =" fileExtensions" value =" java, properties, xml" />
29+
30+ <!-- Excludes all 'module-info.java' files -->
31+ <!-- See https://checkstyle.org/config_filefilters.html -->
32+ <module name =" BeforeExecutionExclusionFileFilter" >
33+ <property name =" fileNamePattern" value =" module\-info\.java$" />
34+ </module >
35+
36+ <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
37+ <module name =" SuppressionFilter" >
38+ <property name =" file" value =" ${org.checkstyle.sun.suppressionfilter.config}"
39+ default =" checkstyle-suppressions.xml" />
40+ <property name =" optional" value =" true" />
41+ </module >
42+
43+ <!-- Checks for whitespace -->
44+ <!-- See http://checkstyle.org/config_whitespace.html -->
45+ <module name =" FileTabCharacter" >
46+ <property name =" eachLine" value =" true" />
47+ </module >
48+
49+ <module name =" LineLength" >
50+ <property name =" fileExtensions" value =" java" />
51+ <property name =" max" value =" 140" />
52+ <property name =" ignorePattern" value =" ^package.*|^import.*|a href|href|http://|https://|ftp://" />
53+ </module >
54+
55+ <module name =" TreeWalker" >
56+ <!-- Checks for Naming Conventions. -->
57+ <!-- See http://checkstyle.org/config_naming.html -->
58+ <module name =" ConstantName" />
59+ <module name =" LocalFinalVariableName" />
60+ <module name =" LocalVariableName" />
61+ <module name =" MemberName" />
62+ <module name =" MethodName" />
63+ <module name =" PackageName" />
64+ <module name =" ParameterName" />
65+ <module name =" StaticVariableName" />
66+ <module name =" TypeName" />
67+
68+ <!-- Checks for imports -->
69+ <!-- See http://checkstyle.org/config_import.html -->
70+ <module name =" AvoidStarImport" />
71+ <module name =" IllegalImport" /> <!-- defaults to sun.* packages -->
72+ <module name =" RedundantImport" />
73+ <module name =" UnusedImports" >
74+ <property name =" processJavadoc" value =" false" />
75+ </module >
76+
77+ <!-- Checks for Size Violations. -->
78+ <!-- See http://checkstyle.org/config_sizes.html -->
79+ <module name =" MethodLength" />
80+ <module name =" ParameterNumber" />
81+
82+ <!-- Checks for whitespace -->
83+ <!-- See http://checkstyle.org/config_whitespace.html -->
84+ <module name =" EmptyForIteratorPad" />
85+ <module name =" GenericWhitespace" />
86+ <module name =" MethodParamPad" />
87+ <module name =" NoWhitespaceAfter" />
88+ <module name =" NoWhitespaceBefore" />
89+ <module name =" OperatorWrap" />
90+ <module name =" ParenPad" />
91+ <module name =" TypecastParenPad" />
92+ <module name =" WhitespaceAfter" />
93+ <module name =" WhitespaceAround" />
94+
95+ <!-- Modifier Checks -->
96+ <!-- See http://checkstyle.org/config_modifiers.html -->
97+ <module name =" ModifierOrder" />
98+ <module name =" RedundantModifier" />
99+
100+ <!-- Checks for blocks. You know, those {}'s -->
101+ <!-- See http://checkstyle.org/config_blocks.html -->
102+ <module name =" AvoidNestedBlocks" />
103+ <module name =" EmptyBlock" />
104+ <module name =" LeftCurly" />
105+ <module name =" NeedBraces" />
106+ <module name =" RightCurly" />
107+
108+ <!-- Checks for common coding problems -->
109+ <!-- See http://checkstyle.org/config_coding.html -->
110+ <module name =" EmptyStatement" />
111+ <module name =" EqualsHashCode" />
112+ <module name =" HiddenField" />
113+ <module name =" IllegalInstantiation" />
114+ <module name =" InnerAssignment" />
115+ <module name =" MagicNumber" />
116+ <module name =" MissingSwitchDefault" />
117+ <module name =" MultipleVariableDeclarations" />
118+ <module name =" SimplifyBooleanExpression" />
119+ <module name =" SimplifyBooleanReturn" />
120+
121+ <!-- Checks for class design -->
122+ <!-- See http://checkstyle.org/config_design.html -->
123+ <module name =" DesignForExtension" />
124+ <module name =" FinalClass" />
125+ <module name =" HideUtilityClassConstructor" />
126+ <module name =" InterfaceIsType" />
127+ <module name =" VisibilityModifier" />
128+
129+ <!-- Miscellaneous other checks. -->
130+ <!-- See http://checkstyle.org/config_misc.html -->
131+ <module name =" ArrayTypeStyle" />
132+ <module name =" FinalParameters" />
133+ <module name =" TodoComment" />
134+ <module name =" UpperEll" />
135+
136+ <module name =" Indentation" >
137+ <property name =" basicOffset" value =" 4" />
138+ <property name =" braceAdjustment" value =" 0" />
139+ <property name =" caseIndent" value =" 4" />
140+ <property name =" throwsIndent" value =" 4" />
141+ <property name =" lineWrappingIndentation" value =" 4" />
142+ <property name =" arrayInitIndent" value =" 4" />
143+ </module >
144+ </module >
145+ </module >
0 commit comments