| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| <!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd"> |
| <module name="Checker"> |
| <module name="TreeWalker"> |
| <!-- Checks for Naming Conventions. --> |
| <!-- See http://checkstyle.sf.net/config_naming.html --> |
| <module name="ConstantName"/> |
| <module name="LocalFinalVariableName"/> |
| <module name="LocalVariableName"/> |
| <module name="MemberName"/> |
| <module name="MethodName"/> |
| <module name="PackageName"/> |
| <module name="ParameterName"/> |
| <module name="StaticVariableName"/> |
| <module name="TypeName"/> |
| <module name="IllegalImport"/> |
| <!-- defaults to sun.* packages --> |
| <module name="RedundantImport"/> |
| <module name="UnusedImports"/> |
| <!-- Checks for Size Violations. --> |
| <!-- See http://checkstyle.sf.net/config_sizes.html --> |
| <module name="AnonInnerLength"> |
| <property name="max" value="40"/> |
| </module> |
| <module name="ExecutableStatementCount"> |
| <property name="max" value="75"/> |
| </module> |
| <module name="MethodLength"> |
| <property name="max" value="150"/> |
| <property name="countEmpty" value="false"/> |
| </module> |
| <module name="ParameterNumber"> |
| <property name="max" value="20"/> |
| </module> |
| <!-- Checks for whitespace --> |
| <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
| <module name="EmptyForIteratorPad"/> |
| <module name="EmptyForInitializerPad"/> |
| <module name="MethodParamPad"/> |
| <module name="NoWhitespaceAfter"> |
| <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/> |
| </module> |
| <module name="NoWhitespaceBefore"/> |
| <module name="OperatorWrap"/> |
| <module name="ParenPad"/> |
| <module name="TypecastParenPad"/> |
| <module name="WhitespaceAfter"> |
| <property name="tokens" value="COMMA, SEMI"/> |
| </module> |
| <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, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN,TYPE_EXTENSION_AND"/> |
| </module> |
| <!-- Modifier Checks --> |
| <!-- See http://checkstyle.sf.net/config_modifiers.html --> |
| <module name="ModifierOrder"/> |
| <module name="RedundantModifier"/> |
| <!-- Checks for blocks. You know, those {}'s --> |
| <!-- See http://checkstyle.sf.net/config_blocks.html --> |
| <module name="AvoidNestedBlocks"> |
| <property name="allowInSwitchCase" value="true"/> |
| </module> |
| <module name="EmptyBlock"> |
| <property name="option" value="text"/> |
| </module> |
| <module name="LeftCurly"/> |
| <module name="NeedBraces"/> |
| <module name="RightCurly"/> |
| <module name="CovariantEquals"/> |
| <!-- blows up with eclipse-cs 5.6.0 |
| <module name="DoubleCheckedLocking"/> |
| --> |
| <module name="EmptyStatement"/> |
| <module name="EqualsHashCode"/> |
| <module name="HiddenField"> |
| <property name="tokens" value="VARIABLE_DEF"/> |
| </module> |
| <module name="IllegalInstantiation"/> |
| <module name="InnerAssignment"/> |
| <module name="MissingSwitchDefault"/> |
| <module name="SimplifyBooleanExpression"/> |
| <module name="StringLiteralEquality"/> |
| <module name="NestedIfDepth"> |
| <property name="max" value="3"/> |
| </module> |
| <module name="NestedTryDepth"> |
| <property name="max" value="3"/> |
| </module> |
| <module name="IllegalThrows"> |
| <property name="illegalClassNames" value="java.lang.Error,java.lang.RuntimeException"/> |
| </module> |
| <module name="PackageDeclaration"/> |
| <module name="DeclarationOrder"/> |
| <module name="ExplicitInitialization"/> |
| <module name="DefaultComesLast"/> |
| <module name="FallThrough"/> |
| <module name="MultipleVariableDeclarations"/> |
| <module name="UnnecessaryParentheses"/> |
| <module name="FinalClass"/> |
| <module name="InterfaceIsType"/> |
| <module name="ThrowsCount"> |
| <property name="max" value="5"/> |
| </module> |
| <module name="VisibilityModifier"> |
| <property name="protectedAllowed" value="true"/> |
| <property name="packageAllowed" value="true"/> |
| <!-- Allow public members with 'Rule' on the end of their names to allow for |
| JUnit rules. Too bad we can't make this see the @nnotations. |
| --> |
| <property name="publicMemberPattern" value="^.*Rule$"/> |
| </module> |
| <!-- Metrics checks. --> |
| <!-- See http://checkstyle.sf.net/config_metrics.html --> |
| <module name="BooleanExpressionComplexity"> |
| <property name="max" value="6"/> |
| </module> |
| <module name="JavaNCSS"> |
| <property name="methodMaximum" value="75"/> |
| </module> |
| <module name="TodoComment"> |
| <property name="format" value="WARNING"/> |
| </module> |
| <module name="UpperEll"/> |
| <!--Assert statement may have side effects:--> |
| <module name="DescendantToken"> |
| <property name="tokens" value="LITERAL_ASSERT"/> |
| <property name="limitedTokens" value="ASSIGN,DEC,INC,POST_DEC,POST_INC,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,DIV_ASSIGN,MOD_ASSIGN,BSR_ASSIGN,SR_ASSIGN,SL_ASSIGN,BAND_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN"/> |
| <property name="maximumNumber" value="0"/> |
| </module> |
| <module name="Indentation"> |
| <property name="caseIndent" value="0"/> |
| </module> |
| </module> |
| <module name="FileTabCharacter"> |
| <property name="eachLine" value="true"/> |
| </module> |
| </module> |