This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from xdev-software/develop
Release
- Loading branch information
Showing
20 changed files
with
357 additions
and
384 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
<module name="Checker"> | ||
<!-- Only check code --> | ||
<property name="fileExtensions" value="java"/> | ||
<property name="severity" value="error"/> | ||
|
||
<property name="tabWidth" value="4"/> | ||
|
||
<module name="SuppressionFilter"> | ||
<property name="file" value=".config/checkstyle/suppressions.xml"/> | ||
</module> | ||
|
||
<module name="FileLength"/> | ||
<module name="LineLength"> | ||
<property name="max" value="120"/> | ||
<property name="fileExtensions" value="java"/> | ||
<!-- Ignore default + links in comments --> | ||
<property name="ignorePattern" value="(^(package|import))|(^\s*(\/\/|\*) .*https?.*$)"/> | ||
</module> | ||
<module name="NewlineAtEndOfFile"/> | ||
|
||
<module name="RegexpSingleline"> | ||
<!-- Ignore inside block comments (*) --> | ||
<property name="format" value="[^\s\*][\s]{1,}$"/> | ||
<property name="minimum" value="0"/> | ||
<property name="maximum" value="0"/> | ||
<property name="message" value="Line has trailing whitespaces"/> | ||
</module> | ||
|
||
<!-- Generated code --> | ||
<module name="SuppressionSingleFilter"> | ||
<property name="checks" value="."/> | ||
<property name="files" value="[\\/](src)?gen[\\/].*\.java$"/> | ||
</module> | ||
<module name="SuppressionSingleFilter"> | ||
<property name="checks" value="."/> | ||
<property name="files" value="[\\/]src[\\/]gen(erated)?[\\/].*\.java$"/> | ||
</module> | ||
<!-- Test code --> | ||
<module name="SuppressionSingleFilter"> | ||
<property name="checks" value="MagicNumberCheck"/> | ||
<property name="files" value="[\\/]test[\\/].*\.java$"/> | ||
</module> | ||
<module name="SuppressWarningsFilter"/> | ||
|
||
<module name="TreeWalker"> | ||
<!-- Checks - sorted alphabetically --> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="AvoidStarImport"/> | ||
<module name="ConstantName"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyBlock"/> | ||
<module name="EmptyCatchBlock"/> | ||
<module name="EmptyForInitializerPad"/> | ||
<module name="EmptyForIteratorPad"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="ExplicitInitialization"> | ||
<property name="severity" value="info"/> | ||
</module> | ||
<module name="FinalClass"/> | ||
<module name="FinalParameters"/> | ||
<module name="GenericWhitespace"/> | ||
<module name="HideUtilityClassConstructor"/> | ||
<module name="IllegalImport"/> | ||
<module name="InterfaceIsType"/> | ||
<module name="JavadocStyle"> | ||
<property name="checkFirstSentence" value="false"/> | ||
</module> | ||
<module name="LeftCurly"> | ||
<!-- Default minus Lambda --> | ||
<property name="tokens" value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF, OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/> | ||
<property name="option" value="nl"/> | ||
</module> | ||
<module name="LocalFinalVariableName"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MagicNumber"> | ||
<property name="ignoreAnnotation" value="true"/> | ||
<property name="ignoreFieldDeclaration" value="true"/> | ||
<property name="ignoreHashCodeMethod" value="true"/> | ||
<!-- Defaults + other common constant values (e.g. time) --> | ||
<property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, 5, 10, 12, 24, 31, 60, 100, 1000"/> | ||
</module> | ||
<module name="MemberName"/> | ||
<module name="MethodLength"/> | ||
<module name="MethodName"/> | ||
<module name="MethodParamPad"/> | ||
<module name="MissingDeprecated"/> | ||
<module name="MissingOverride"/> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="ModifierOrder"/> | ||
<module name="NeedBraces"/> | ||
<module name="NoClone"/> | ||
<module name="NoFinalizer"/> | ||
<module name="NonEmptyAtclauseDescription"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="OneStatementPerLine"/> | ||
<module name="OneTopLevelClass"/> | ||
<module name="OperatorWrap"/> | ||
<module name="OuterTypeNumber"/> | ||
<module name="PackageName"/> | ||
<module name="ParameterName"/> | ||
<module name="ParenPad"/> | ||
<module name="RedundantImport"/> | ||
<module name="RequireThis"/> | ||
<module name="RightCurly"> | ||
<property name="option" value="alone"/> | ||
</module> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="StaticVariableName"/> | ||
<module name="StringLiteralEquality"/> | ||
<module name="SuppressWarningsHolder"/> | ||
<module name="TodoComment"> | ||
<property name="severity" value="info"/> | ||
</module> | ||
<module name="TypecastParenPad"/> | ||
<module name="TypeName"/> | ||
<module name="UnusedImports"/> | ||
<module name="UpperEll"/> | ||
<module name="VisibilityModifier"> | ||
<property name="packageAllowed" value="true"/> | ||
<property name="protectedAllowed" value="true"/> | ||
</module> | ||
<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,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> | ||
|
||
<!-- Filter --> | ||
<module name="SuppressionCommentFilter"> | ||
<property name="offCommentFormat" value="\s*CHECKSTYLE:OFF\s*[^\s]{1,}"/> | ||
<property name="onCommentFormat" value="\s*CHECKSTYLE:ON"/> | ||
</module> | ||
</module> | ||
</module> |
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,6 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE suppressions PUBLIC | ||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" | ||
"https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
<suppressions> | ||
</suppressions> |
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
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
Oops, something went wrong.