-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cda01d
commit 0bb332f
Showing
8 changed files
with
433 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
<?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"/> | ||
<property name="fileExtensions" value="java, properties, xml"/> | ||
|
||
<module name="BeforeExecutionExclusionFileFilter"> | ||
<property name="fileNamePattern" value="module\-info\.java$"/> | ||
</module> | ||
|
||
<module name="NewlineAtEndOfFile"/> | ||
|
||
<module name="Translation"/> | ||
|
||
<module name="UniqueProperties"/> | ||
|
||
<module name="FileLength"/> | ||
<module name="LineLength"> | ||
<property name="max" value="120"/> | ||
<property name="fileExtensions" value="java"/> | ||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
</module> | ||
|
||
<module name="FileTabCharacter"/> | ||
|
||
<module name="SuppressWithPlainTextCommentFilter"/> | ||
<module name="SuppressWarningsFilter"/> | ||
|
||
|
||
<module name="TreeWalker"> | ||
<module name="JavadocMissingLeadingAsteriskCheck"/> | ||
<module name="JavadocMissingWhitespaceAfterAsterisk"/> | ||
|
||
<module name="JavadocStyle"> | ||
<property name="checkFirstSentence" value="false"/> | ||
<property name="checkEmptyJavadoc" value="true"/> | ||
<property name="tokens" | ||
value="ANNOTATION_DEF, ANNOTATION_FIELD_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, METHOD_DEF, VARIABLE_DEF"/> | ||
</module> | ||
|
||
|
||
<module name="SingleLineJavadoc"/> | ||
<module name="MissingOverride"/> | ||
<module name="CatchParameterName"/> | ||
<module name="ClassTypeParameterName"/> | ||
<module name="ConstantName"/> | ||
<module name="IllegalIdentifierName"/> | ||
<module name="InterfaceTypeParameterName"/> | ||
<module name="LambdaParameterName"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MemberName"/> | ||
<module name="MethodName"/> | ||
<module name="MethodTypeParameterName"/> | ||
<module name="PackageName"/> | ||
<module name="ParameterName"/> | ||
<module name="PatternVariableName"/> | ||
<module name="RecordTypeParameterName"/> | ||
<module name="RecordComponentName"/> | ||
<module name="StaticVariableName"/> | ||
<module name="TypeName"/> | ||
<module name="AvoidStarImport"/> | ||
<module name="IllegalImport"/> | ||
<module name="RedundantImport"/> | ||
<module name="UnusedImports"/> | ||
|
||
<module name="AnonInnerLength"> | ||
<property name="max" value="40"/> | ||
</module> | ||
|
||
<module name="LambdaBodyLength"> | ||
<property name="max" value="40"/> | ||
</module> | ||
|
||
<module name="MethodLength"/> | ||
<module name="OuterTypeNumber"/> | ||
<module name="ParameterNumber"/> | ||
|
||
<module name="EmptyForIteratorPad"/> | ||
<module name="GenericWhitespace"/> | ||
<module name="MethodParamPad"/> | ||
<module name="NoLineWrap"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="NoWhitespaceBeforeCaseDefaultColon"/> | ||
<module name="OperatorWrap"/> | ||
<module name="ParenPad"/> | ||
<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"> | ||
<property name="id" value="SeparatorWrapEllipsis"/> | ||
<property name="tokens" value="ELLIPSIS"/> | ||
<property name="option" value="EOL"/> | ||
</module> | ||
<module name="SeparatorWrap"> | ||
<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> | ||
|
||
<module name="TypecastParenPad"/> | ||
<module name="WhitespaceAfter"/> | ||
<module name="WhitespaceAround"> | ||
<property name="allowEmptyConstructors" value="true"/> | ||
<property name="allowEmptyLambdas" 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 it's ctor, method, type, lambda or loop"/> | ||
<message key="ws.notPreceded" | ||
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> | ||
</module> | ||
|
||
<module name="RedundantModifier"/> | ||
|
||
<module name="AvoidNestedBlocks"> | ||
<property name="allowInSwitchCase" value="true"/> | ||
</module> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="TEXT"/> | ||
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> | ||
</module> | ||
<module name="LeftCurly"/> | ||
<module name="RightCurly"/> | ||
|
||
|
||
<module name="AvoidNoArgumentSuperConstructorCall"/> | ||
<module name="CovariantEquals"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="FallThrough"/> | ||
<module name="HiddenField"> | ||
<property name="tokens" value="VARIABLE_DEF"/> | ||
</module> | ||
<module name="IllegalInstantiation"> | ||
<property name="classes" value="java.lang.Boolean"/> | ||
</module> | ||
<module name="InnerAssignment"/> | ||
<module name="MagicNumber"> | ||
<property name="ignoreHashCodeMethod" value="true"/> | ||
<property name="ignoreAnnotation" value="true"/> | ||
<message key="magic.number" | ||
value="Most likely the value ''{0}'' is a configuration one. You should move it to configuration file instead of source code."/> | ||
</module> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="ModifiedControlVariable"/> | ||
<module name="MultipleStringLiterals"> | ||
<property name="ignoreStringsRegexp" value='^(("")|(".")|("..")|("..>"))$'/> | ||
</module> | ||
<module name="MultipleVariableDeclarations"/> | ||
<module name="NestedForDepth"> | ||
<property name="max" value="2"/> | ||
</module> | ||
<module name="NestedIfDepth"> | ||
<property name="max" value="2"/> | ||
</module> | ||
<module name="NestedTryDepth"> | ||
<property name="max" value="2"/> | ||
</module> | ||
<module name="NoClone"/> | ||
<module name="NoFinalizer"/> | ||
<module name="OneStatementPerLine"/> | ||
<module name="PackageDeclaration"/> | ||
<module name="ParameterAssignment"/> | ||
<module name="ReturnCount"> | ||
<property name="max" value="4"/> | ||
</module> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="SimplifyBooleanReturn"/> | ||
<module name="StringLiteralEquality"/> | ||
<module name="SuperClone"/> | ||
<module name="SuperFinalize"/> | ||
<module name="FinalClass"> | ||
<property name="severity" value="warning"/> | ||
<message key="final.class" | ||
value="Private ctor in non-final class. Inspect the code and make sure it's intended."/> | ||
</module> | ||
<module name="HideUtilityClassConstructor"/> | ||
<module name="SuppressionXpathSingleFilter"> | ||
<property name="checks" value="HideUtilityClassConstructor"/> | ||
<property name="query" | ||
value="//*[MODIFIERS//*[@text = 'UtilityClass' or @text='NoArgsConstructor' or @text = 'SpringBootApplication']]/descendant-or-self::node()"/> | ||
</module> | ||
<module name="InnerTypeLast"/> | ||
<module name="MutableException"/> | ||
<module name="OneTopLevelClass"/> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="NoCodeInFile"/> | ||
|
||
<module name="OuterTypeFilename"/> | ||
<module name="UncommentedMain"> | ||
<property name="excludedClasses" value="Application|Main"/> | ||
</module> | ||
<module name="UpperEll"/> | ||
|
||
<module name="CyclomaticComplexity"> | ||
<property name="max" value="16"/> | ||
</module> | ||
|
||
<module name="SuppressionCommentFilter"/> | ||
<module name="SuppressWarningsHolder"/> | ||
<module name="SuppressWithNearbyCommentFilter"/> | ||
</module> | ||
</module> | ||
|
Oops, something went wrong.