2014-10-31 06:20:28 -04:00
<?xml version="1.0"?>
2015-01-05 07:45:36 -05:00
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
2014-10-31 06:20:28 -04:00
< !DOCTYPE module PUBLIC
2015-08-16 08:44:47 -04:00
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
2014-10-31 06:20:28 -04:00
2015-08-16 08:22:49 -04:00
<!-- See http://checkstyle.sourceforge.net/checks.html for documentation on available checks -->
2014-10-31 06:20:28 -04:00
<module name= "Checker" >
<!-- Checks to see if a file contains a tab character. -->
<module name= "FileTabCharacter" >
<property name= "eachLine" value= "true" />
</module>
<!-- Checks for trailing whitespace. -->
<module name= "RegexpSingleline" >
<!-- \s matches whitespace character, $ matches end of line. -->
<property name= "format" value= "\s+$" />
<property name= "message" value= "Line has trailing spaces." />
</module>
<module name= "TreeWalker" >
<!-- Checks for imports -->
<module name= "AvoidStarImport" />
<module name= "RedundantImport" />
<module name= "UnusedImports" />
<!-- Modifier Checks -->
<module name= "ModifierOrder" />
2017-05-29 18:48:50 -04:00
<module name= "RedundantModifier" />
2014-10-31 06:20:28 -04:00
<!-- Checks for common coding problems -->
<module name= "EmptyStatement" />
<!-- Checks that classes that override equals() also override hashCode(). -->
<module name= "EqualsHashCode" />
<!-- Checks for illegal instantiations where a factory method is preferred. -->
<module name= "IllegalInstantiation" />
<!-- Checks that long constants are defined with an upper ell. -->
<module name= "UpperEll" />
<!-- This check makes sure that all package annotations are in the package - info.java file. -->
<module name= "PackageAnnotation" />
<!-- Checks that if a class defines a covariant method equals, then it defines method equals(java.lang.Object). -->
<module name= "CovariantEquals" />
<!-- Checks the style of array type definitions. -->
<module name= "ArrayTypeStyle" />
2015-08-04 12:01:29 -04:00
<!-- Make sure left curly braces are on the same line. -->
2019-10-31 10:23:05 -04:00
<module name= "LeftCurly" />
2016-09-29 17:07:38 -04:00
<module name= "RightCurly" />
2014-10-31 06:20:28 -04:00
<module name= "RightCurly" >
<property name= "option" value= "alone" />
2021-06-10 23:56:40 -04:00
<property name= "tokens" value= "CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT" />
2014-10-31 06:20:28 -04:00
</module>
<!-- Checks that there is no whitespace after certain tokens; e.g. "." and "!". -->
<module name= "NoWhitespaceAfter" />
<!-- Checks that there is no whitespace before certain tokens; e.g. "++" and ";". -->
<module name= "NoWhitespaceBefore" />
<!-- Checks that most tokens are surrounded by whitespace. RCURLY is omitted so we can do stuff like "new Thread(){...}.start()". -->
<module name= "WhitespaceAround" >
<property name= "tokens" value= "ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND" />
</module>
<!-- Ensure there is no space between the identifier of a method definition, constructor definition, method call, or constructor invocation and the left parenthesis of the parameter list. -->
<module name= "MethodParamPad" />
<!-- Ensure proper indentation. -->
<module name= "Indentation" >
<property name= "basicOffset" value= "3" />
<property name= "caseIndent" value= "3" />
<property name= "throwsIndent" value= "3" />
2015-08-16 08:24:27 -04:00
<property name= "arrayInitIndent" value= "3" />
<property name= "lineWrappingIndentation" value= "3" />
2014-10-31 06:20:28 -04:00
</module>
2014-11-10 11:14:12 -05:00
<module name= "IllegalImport" >
<property name= "illegalPkgs" value= "junit.framework" />
</module>
2015-03-10 15:28:20 -04:00
<module name= "WriteTag" >
<property name= "tag" value= "@author" />
<property name= "tagSeverity" value= "error" />
<property name= "severity" value= "ignore" />
</module>
2016-06-13 17:18:58 -04:00
<!-- Sevntu checks, http://sevntu - checkstyle.github.io/sevntu.checkstyle/ -->
<module name= "DiamondOperatorForVariableDefinition" />
2016-06-13 17:34:55 -04:00
<module name= "RequiredParameterForAnnotation" >
<property name= "annotationName" value= "Parameterized.Parameters" />
<property name= "requiredParameters" value= "name" />
</module>
2016-06-13 17:18:58 -04:00
2023-02-24 12:01:41 -05:00
<module name= "UnnecessarySemicolonInTryWithResources" />
2014-10-31 06:20:28 -04:00
</module>
</module>