|
24 | 24 |
|
25 | 25 | <property name="fileExtensions" value="java, properties, xml"/> |
26 | 26 |
|
| 27 | + <module name="SuppressionFilter"> |
| 28 | + <property name="file" value="checkstyle/checkstyle-suppressions.xml"/> |
| 29 | + </module> |
| 30 | + |
27 | 31 | <!-- Whitespaces Checks. See: http://checkstyle.sourceforge.net/config_whitespace.html --> |
28 | 32 | <module name="FileTabCharacter"> |
29 | 33 | <property name="eachLine" value="true"/> |
|
33 | 37 | <module name="NewlineAtEndOfFile"/> |
34 | 38 |
|
35 | 39 | <module name="TreeWalker"> |
| 40 | + <module name="SuppressionXpathFilter"> |
| 41 | + <property name="file" value="checkstyle/checkstyle-xpath-suppressions.xml"/> |
| 42 | + </module> |
| 43 | + |
36 | 44 | <!-- Coding Checks. See: https://checkstyle.sourceforge.io/config_coding.html --> |
37 | 45 | <module name="SimplifyBooleanExpression"/> |
38 | 46 |
|
|
82 | 90 |
|
83 | 91 | <!-- @Override annotations on the same line with a method declaration check. --> |
84 | 92 | <module name="AnnotationOnSameLine" /> |
85 | | - <module name="SuppressionXpathSingleFilter"> |
86 | | - <property name="checks" value="AnnotationOnSameLine" /> |
87 | | - <property name="query" value="//ANNOTATION[.//IDENT[not(@text='Override')]]" /> |
88 | | - </module> |
| 93 | + |
89 | 94 | <!-- |
90 | 95 | Checks the padding between the identifier of a method definition, constructor definition, method call, or |
91 | 96 | constructor invocation; and the left parenthesis of the parameter list. |
|
166 | 171 | --> |
167 | 172 | <module name="JavadocVariable"/> |
168 | 173 |
|
169 | | - <!-- |
170 | | - Suppresses MissingJavadocMethod check violations in the specified packages. |
171 | | - See: https://checkstyle.sourceforge.io/config_filters.html#SuppressionXpathSingleFilter |
172 | | - --> |
173 | | - <module name="SuppressionXpathSingleFilter"> |
174 | | - <property name="checks" value="(?<!Missing)JavadocMethod"/> |
175 | | - <property name="files" value="[\\/]internal[\\/]|[\\/]test[\\/]|[\\/]tests[\\/]|[\\/]ml[\\/]|[\\/]yardstick[\\/]"/> |
176 | | - </module> |
177 | | - |
178 | | - <!-- |
179 | | - Suppresses all Javadoc check violations in the specified files. |
180 | | - See: https://checkstyle.sourceforge.io/config_filters.html#SuppressionXpathSingleFilter |
181 | | - --> |
182 | | - <module name="SuppressionXpathSingleFilter"> |
183 | | - <property name="checks" value="Javadoc"/> |
184 | | - <property name="files" value="BCrypt\.java|HLL\.java|HLLMetadata\.java|HLLType\.java|BigEndianAscendingWordSerializer\.java|NumberUtil\.java|SchemaVersionOne\.java|BigEndianAscendingWordDeserializer\.java|CacheView\.java|ConcurrentLinkedDeque8\.java|ConcurrentHashMap8\.java|ConcurrentLinkedHashMap\.java"/> |
185 | | - </module> |
186 | | - |
187 | 174 | <module name="Indentation" /> |
188 | 175 |
|
189 | 176 | <module name="LeftCurly"/> |
|
195 | 182 | <!-- Usage of Ignite abbrevations check. --> |
196 | 183 | <module name="org.apache.ignite.tools.checkstyle.IgniteAbbrevationsRule"/> |
197 | 184 |
|
| 185 | + <!-- Prevents usage of the particular Java classes in Ignite codebase. --> |
198 | 186 | <module name="org.apache.ignite.tools.checkstyle.ClassUsageRestrictionRule"> |
199 | 187 | <property name="className" value="java.util.concurrent.ForkJoinPool"/> |
200 | 188 | <property name="factoryMethods" value="commonPool"/> |
|
222 | 210 | <property name="className" value="java.util.concurrent.ScheduledThreadPoolExecutor"/> |
223 | 211 | <property name="substitutionClassName" value="org.apache.ignite.internal.thread.pool.IgniteScheduledThreadPoolExecutor"/> |
224 | 212 | </module> |
225 | | - |
226 | | - <module name="SuppressionXpathSingleFilter"> |
227 | | - <property name="checks" value="org.apache.ignite.tools.checkstyle.ClassUsageRestrictionRule"/> |
228 | | - <property name="files" value="[\\/]org[\\/]apache[\\/]ignite[\\/]yardstick[\\/]|[\\/]org[\\/]apache[\\/]ignite[\\/]internal[\\/]thread[\\/]|[\\/]jdbc[\\/]thin[\\/]|[\\/]test[\\/]|[\\/]tests[\\/]|[\\/]internal[\\/]client[\\/]|[\\/]io[\\/]opencensus[\\/]|DumpReader\.java|CacheLoadOnlyStoreAdapter\.java"/> |
229 | | - </module> |
230 | 213 | </module> |
231 | 214 |
|
232 | 215 | <!-- |
|
0 commit comments