2019-09-24 11:12:35 +02:00
<?xml version="1.0"?>
< !DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker" >
<property name= "charset" value= "UTF-8" />
2020-02-02 18:02:15 +01:00
<property name= "severity" value= "error" />
2024-04-07 23:28:14 +02:00
<property name= "fileExtensions" value= "java" />
2019-09-24 11:12:35 +02:00
2020-02-02 17:47:41 +01:00
<module name= "SuppressionFilter" >
2020-02-02 18:02:15 +01:00
<property name= "file" value= "${config_loc}/suppressions.xml" />
2020-02-02 17:47:41 +01:00
</module>
2019-09-24 11:12:35 +02:00
2024-03-04 22:39:09 +01:00
<module name= "FileTabCharacter" >
<property name= "eachLine" value= "true" />
</module>
2024-04-07 23:28:14 +02:00
<module name= "LineLength" >
<property name= "max" value= "120" />
<property name= "ignorePattern" value= "^package.*|^import.*|a href|href|http://|https://|ftp://" />
</module>
2019-09-24 11:12:35 +02:00
<module name= "TreeWalker" >
2019-09-28 17:23:36 +02:00
<module name= "OuterTypeFilename" />
2019-10-22 16:50:04 +02:00
<module name= "IllegalTokenText" >
<property name= "tokens" value= "STRING_LITERAL, CHAR_LITERAL" />
<property name= "format"
value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
<property name= "message"
value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
</module>
2019-09-24 11:12:35 +02:00
<module name= "AvoidEscapedUnicodeCharacters" >
<property name= "allowEscapesForControlCharacters" value= "true" />
<property name= "allowByTailComment" value= "true" />
<property name= "allowNonPrintableEscapes" value= "true" />
</module>
<module name= "AvoidStarImport" />
2024-10-27 21:11:24 +01:00
<module name= "UnusedImports" >
<property name= "processJavadoc" value= "false" />
</module>
2019-09-24 11:12:35 +02:00
<module name= "OneTopLevelClass" />
2019-09-28 17:23:36 +02:00
<module name= "NoLineWrap" />
<module name= "EmptyBlock" >
<property name= "option" value= "TEXT" />
<property name= "tokens"
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module>
2024-04-07 23:28:14 +02:00
<module name= "NeedBraces" />
<module name= "LeftCurly" />
2020-03-18 20:13:09 +01:00
<module name= "RightCurly" >
<property name= "id" value= "RightCurlySame" />
<property name= "tokens"
2024-04-07 23:28:14 +02:00
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
LITERAL_DO"/>
</module>
<module name= "RightCurly" >
<property name= "id" value= "RightCurlyAlone" />
<property name= "option" value= "alone" />
<property name= "tokens"
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
INSTANCE_INIT"/>
</module>
<module name= "WhitespaceAround" >
<property name= "allowEmptyConstructors" value= "true" />
<property name= "allowEmptyMethods" value= "true" />
<property name= "allowEmptyTypes" value= "true" />
<property name= "allowEmptyLoops" value= "true" />
<message key= "ws.notFollowed"
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
<message key= "ws.notPreceded"
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
2020-03-18 20:13:09 +01:00
</module>
2019-09-24 11:12:35 +02:00
<module name= "OneStatementPerLine" />
2019-10-22 16:53:35 +02:00
<module name= "MultipleVariableDeclarations" />
2020-03-18 20:13:09 +01:00
<module name= "ArrayTypeStyle" />
2024-04-07 23:28:14 +02:00
<module name= "MissingSwitchDefault" />
2019-09-28 17:23:36 +02:00
<module name= "FallThrough" />
<module name= "UpperEll" />
2019-09-24 11:12:35 +02:00
<module name= "ModifierOrder" />
2022-01-15 12:57:23 +01:00
<module name= "EmptyLineSeparator" >
<property name= "allowNoEmptyLineBetweenFields" value= "true" />
</module>
2020-02-02 17:56:57 +01:00
<module name= "SeparatorWrap" >
<property name= "id" value= "SeparatorWrapDot" />
<property name= "tokens" value= "DOT" />
<property name= "option" value= "nl" />
</module>
<module name= "SeparatorWrap" >
<property name= "id" value= "SeparatorWrapComma" />
<property name= "tokens" value= "COMMA" />
<property name= "option" value= "EOL" />
</module>
<module name= "SeparatorWrap" >
<!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 -->
<property name= "id" value= "SeparatorWrapEllipsis" />
<property name= "tokens" value= "ELLIPSIS" />
<property name= "option" value= "EOL" />
</module>
<module name= "SeparatorWrap" >
<!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 -->
<property name= "id" value= "SeparatorWrapArrayDeclarator" />
<property name= "tokens" value= "ARRAY_DECLARATOR" />
<property name= "option" value= "EOL" />
</module>
<module name= "SeparatorWrap" >
<property name= "id" value= "SeparatorWrapMethodRef" />
<property name= "tokens" value= "METHOD_REF" />
<property name= "option" value= "nl" />
</module>
2019-09-24 11:12:35 +02:00
<module name= "PackageName" >
<property name= "format" value= "^[a-z]+(\.[a-z][a-z0-9]*)*$" />
<message key= "name.invalidPattern"
value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
2019-09-28 17:23:36 +02:00
<module name= "TypeName" >
<message key= "name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
2024-04-07 23:28:14 +02:00
<module name= "MemberName" >
<property name= "format" value= "^[a-z][a-z0-9][a-zA-Z0-9]*$" />
<message key= "name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name= "ParameterName" >
<property name= "format" value= "^[a-z]([a-z0-9][a-zA-Z0-9]*)?$" />
<message key= "name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
2020-03-18 20:13:09 +01:00
<module name= "LambdaParameterName" >
<property name= "format" value= "^[a-z]([a-z0-9][a-zA-Z0-9]*)?$" />
<message key= "name.invalidPattern"
value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
2019-09-28 17:23:36 +02:00
<module name= "CatchParameterName" >
<property name= "format" value= "^[a-z]([a-z0-9][a-zA-Z0-9]*)?$" />
<message key= "name.invalidPattern"
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
2024-04-07 23:28:14 +02:00
<module name= "LocalVariableName" >
<property name= "tokens" value= "VARIABLE_DEF" />
<property name= "format" value= "^[a-z]([a-z0-9][a-zA-Z0-9]*)?$" />
<message key= "name.invalidPattern"
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
</module>
2019-09-28 17:23:36 +02:00
<module name= "ClassTypeParameterName" >
<property name= "format" value= "(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)" />
<message key= "name.invalidPattern"
value="Class type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name= "MethodTypeParameterName" >
<property name= "format" value= "(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)" />
<message key= "name.invalidPattern"
value="Method type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name= "InterfaceTypeParameterName" >
<property name= "format" value= "(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)" />
<message key= "name.invalidPattern"
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name= "NoFinalizer" />
<module name= "GenericWhitespace" >
<message key= "ws.followed"
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
<message key= "ws.preceded"
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
<message key= "ws.illegalFollow"
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
<message key= "ws.notPreceded"
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
2020-02-02 17:52:21 +01:00
<module name= "MethodParamPad" />
2024-03-04 23:01:24 +01:00
<module name= "Indentation" >
<property name= "basicOffset" value= "4" />
<property name= "braceAdjustment" value= "0" />
<property name= "caseIndent" value= "4" />
<property name= "throwsIndent" value= "8" />
<property name= "lineWrappingIndentation" value= "8" />
<property name= "arrayInitIndent" value= "4" />
</module>
2024-04-07 23:28:14 +02:00
<module name= "AbbreviationAsWordInName" >
<property name= "ignoreFinal" value= "false" />
<property name= "allowedAbbreviationLength" value= "1" />
</module>
<module name= "VariableDeclarationUsageDistance" />
<module name= "MethodParamPad" />
<module name= "WhitespaceAfter" />
2019-10-22 16:57:05 +02:00
<module name= "NoWhitespaceBefore" >
<property name= "tokens"
value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
<property name= "allowLineBreaks" value= "true" />
</module>
2022-01-15 12:57:23 +01:00
<module name= "ParenPad" />
2024-04-07 23:28:14 +02:00
<module name= "OperatorWrap" >
<property name= "option" value= "NL" />
<property name= "tokens"
value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
</module>
2019-09-28 17:23:36 +02:00
<module name= "AnnotationLocation" >
<property name= "id" value= "AnnotationLocationMostCases" />
<property name= "tokens"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
</module>
<module name= "AnnotationLocation" >
<property name= "id" value= "AnnotationLocationVariables" />
<property name= "tokens" value= "VARIABLE_DEF" />
<property name= "allowSamelineMultipleAnnotations" value= "true" />
</module>
2024-04-07 23:28:14 +02:00
<module name= "NonEmptyAtclauseDescription" />
<module name= "JavadocTagContinuationIndentation" />
<module name= "JavadocParagraph" />
2020-03-18 20:13:09 +01:00
<module name= "AtclauseOrder" >
<property name= "tagOrder" value= "@param, @return, @throws, @deprecated" />
<property name= "target"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
2020-02-02 17:47:41 +01:00
<module name= "MethodName" >
<property name= "format" value= "^[a-z][a-z0-9][a-zA-Z0-9_]*$" />
<message key= "name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
2020-02-02 17:33:38 +01:00
<module name= "SingleLineJavadoc" >
<property name= "ignoreInlineTags" value= "false" />
</module>
2022-01-15 12:57:23 +01:00
<module name= "EmptyCatchBlock" >
<property name= "exceptionVariableName" value= "expected" />
</module>
2024-04-07 23:28:14 +02:00
<module name= "CommentsIndentation" />
2019-12-02 10:30:49 +01:00
<module name= "NestedIfDepth" >
<property name= "max" value= "4" />
</module>
<module name= "NestedTryDepth" >
<property name= "max" value= "2" />
</module>
<module name= "NestedForDepth" >
<property name= "max" value= "2" />
</module>
2019-09-24 11:12:35 +02:00
</module>
</module>