|
20 | 20 | - some best practices
|
21 | 21 |
|
22 | 22 | Checkstyle is very configurable. Be sure to read the documentation at
|
23 |
| - http://checkstyle.sourceforge.net (or in your downloaded distribution). |
| 23 | + https://checkstyle.sourceforge.io (or in your downloaded distribution). |
24 | 24 |
|
25 | 25 | Most Checks are configurable, be sure to consult the documentation.
|
26 | 26 |
|
|
34 | 34 | <!--
|
35 | 35 | If you set the basedir property below, then all reported file
|
36 | 36 | names will be relative to the specified directory. See
|
37 |
| - http://checkstyle.sourceforge.net/config.html#Checker |
| 37 | + https://checkstyle.sourceforge.io/config.html#Checker |
38 | 38 |
|
39 | 39 | <property name="basedir" value="${basedir}"/>
|
40 | 40 | -->
|
41 | 41 |
|
42 | 42 | <!-- Checks that each Java package has a Javadoc file used for commenting. -->
|
43 |
| - <!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage --> |
| 43 | + <!-- See https://checkstyle.sourceforge.io/config_javadoc.html#JavadocPackage --> |
44 | 44 | <module name="JavadocPackage" />
|
45 | 45 |
|
46 | 46 | <!-- Checks whether files end with a new line. -->
|
47 |
| - <!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile --> |
| 47 | + <!-- See https://checkstyle.sourceforge.io/config_misc.html#NewlineAtEndOfFile --> |
48 | 48 | <module name="NewlineAtEndOfFile">
|
49 | 49 | <property name="severity" value="warning"/>
|
50 | 50 | <!--
|
|
55 | 55 | </module>
|
56 | 56 |
|
57 | 57 | <!-- Checks that property files contain the same keys. -->
|
58 |
| - <!-- See http://checkstyle.sourceforge.net/config_misc.html#Translation --> |
| 58 | + <!-- See https://checkstyle.sourceforge.io/config_misc.html#Translation --> |
59 | 59 | <module name="Translation"/>
|
60 | 60 |
|
61 | 61 | <module name="FileLength"/>
|
|
98 | 98 | <module name="SuppressWarningsHolder"/>
|
99 | 99 |
|
100 | 100 | <!-- Checks for Javadoc comments. -->
|
101 |
| - <!-- See http://checkstyle.sourceforge.net/config_javadoc.html --> |
| 101 | + <!-- See https://checkstyle.sourceforge.io/config_javadoc.html --> |
102 | 102 | <!--
|
103 | 103 | <module name="JavadocMethod"/>
|
104 | 104 | <module name="JavadocType"/>
|
|
108 | 108 |
|
109 | 109 |
|
110 | 110 | <!-- Checks for Naming Conventions. -->
|
111 |
| - <!-- See http://checkstyle.sourceforge.net/config_naming.html --> |
| 111 | + <!-- See https://checkstyle.sourceforge.io/config_naming.html --> |
112 | 112 | <module name="AbstractClassName"/>
|
113 | 113 | <module name="ConstantName"/>
|
114 | 114 | <module name="LocalFinalVariableName"/>
|
|
122 | 122 |
|
123 | 123 |
|
124 | 124 | <!-- Checks for Headers -->
|
125 |
| - <!-- See http://checkstyle.sourceforge.net/config_header.html --> |
| 125 | + <!-- See https://checkstyle.sourceforge.io/config_header.html --> |
126 | 126 | <!-- <module name="Header"> -->
|
127 | 127 | <!-- The follow property value demonstrates the ability -->
|
128 | 128 | <!-- to have access to ANT properties. In this case it uses -->
|
129 | 129 | <!-- the ${basedir} property to allow Checkstyle to be run -->
|
130 | 130 | <!-- from any directory within a project. See property -->
|
131 | 131 | <!-- expansion, -->
|
132 |
| - <!-- http://checkstyle.sourceforge.net/config.html#Properties --> |
| 132 | + <!-- https://checkstyle.sourceforge.io/config.html#Properties --> |
133 | 133 | <!-- <property -->
|
134 | 134 | <!-- name="headerFile" -->
|
135 | 135 | <!-- value="${basedir}/java.header"/> -->
|
136 | 136 | <!-- </module> -->
|
137 | 137 |
|
138 | 138 |
|
139 | 139 | <!-- Checks for imports -->
|
140 |
| - <!-- See http://checkstyle.sourceforge.net/config_imports.html --> |
| 140 | + <!-- See https://checkstyle.sourceforge.io/config_imports.html --> |
141 | 141 | <module name="AvoidStarImport"/>
|
142 | 142 | <module name="IllegalImport"> <!-- defaults to sun.* packages -->
|
143 | 143 | <property name="illegalPkgs" value="org.apache.log4j, org.apache.commons.lang"/>
|
|
153 | 153 |
|
154 | 154 |
|
155 | 155 | <!-- Checks for Size Violations. -->
|
156 |
| - <!-- See http://checkstyle.sourceforge.net/config_sizes.html --> |
| 156 | + <!-- See https://checkstyle.sourceforge.io/config_sizes.html --> |
157 | 157 | <module name="LineLength">
|
158 | 158 | <property name="severity" value="warning"/>
|
159 | 159 | <property name="max" value="100"/>
|
|
164 | 164 |
|
165 | 165 |
|
166 | 166 | <!-- Checks for whitespace -->
|
167 |
| - <!-- See http://checkstyle.sourceforge.net/config_whitespace.html --> |
| 167 | + <!-- See https://checkstyle.sourceforge.io/config_whitespace.html --> |
168 | 168 | <module name="EmptyForIteratorPad"/>
|
169 | 169 | <module name="MethodParamPad"/>
|
170 | 170 | <module name="NoWhitespaceAfter">
|
|
186 | 186 |
|
187 | 187 |
|
188 | 188 | <!-- Modifier Checks -->
|
189 |
| - <!-- See http://checkstyle.sourceforge.net/config_modifier.html --> |
| 189 | + <!-- See https://checkstyle.sourceforge.io/config_modifier.html --> |
190 | 190 | <module name="ModifierOrder"/>
|
191 | 191 | <module name="RedundantModifier"/>
|
192 | 192 |
|
193 | 193 |
|
194 | 194 | <!-- Checks for blocks. You know, those {}'s -->
|
195 |
| - <!-- See http://checkstyle.sourceforge.net/config_blocks.html --> |
| 195 | + <!-- See https://checkstyle.sourceforge.io/config_blocks.html --> |
196 | 196 | <module name="AvoidNestedBlocks"/>
|
197 | 197 | <module name="EmptyBlock"/>
|
198 | 198 | <module name="LeftCurly"/>
|
|
201 | 201 |
|
202 | 202 |
|
203 | 203 | <!-- Checks for common coding problems -->
|
204 |
| - <!-- See http://checkstyle.sourceforge.net/config_coding.html --> |
| 204 | + <!-- See https://checkstyle.sourceforge.io/config_coding.html --> |
205 | 205 | <!--
|
206 | 206 | <module name="AvoidInlineConditionals"/>
|
207 | 207 | -->
|
|
233 | 233 | -->
|
234 | 234 |
|
235 | 235 | <!-- Checks for class design -->
|
236 |
| - <!-- See http://checkstyle.sourceforge.net/config_design.html --> |
| 236 | + <!-- See https://checkstyle.sourceforge.io/config_design.html --> |
237 | 237 | <!--
|
238 | 238 | <module name="DesignForExtension"/>
|
239 | 239 | -->
|
|
246 | 246 |
|
247 | 247 |
|
248 | 248 | <!-- Miscellaneous other checks. -->
|
249 |
| - <!-- See http://checkstyle.sourceforge.net/config_misc.html --> |
| 249 | + <!-- See https://checkstyle.sourceforge.io/config_misc.html --> |
250 | 250 | <module name="ArrayTypeStyle"/>
|
251 | 251 | <!--
|
252 | 252 | <module name="FinalParameters">
|
|
0 commit comments