-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wire up new static code analyzer - checkstyle
Try change static code analyzer to checkstyle Wire up new static code analyzer
- Loading branch information
Michał Piotrowski
committed
Mar 26, 2020
1 parent
1b172ec
commit c6d6090
Showing
19 changed files
with
175 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | ||
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
|
||
<!-- Examples from this file: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml --> | ||
|
||
<!-- List of directives: https://checkstyle.sourceforge.io/version/4.4/availablechecks.html --> | ||
|
||
<module name="Checker"> | ||
<module name="NewlineAtEndOfFile"/> | ||
<module name="TreeWalker"> | ||
<module name="AvoidStarImport"/> | ||
<module name="ConstantName"/> | ||
<module name="EmptyBlock"/> | ||
<module name="EqualsHashCodeCheck"/> | ||
<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="NeedBraces"> | ||
<property name="tokens" | ||
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/> | ||
</module> | ||
<module name="LeftCurly"> | ||
<property name="tokens" | ||
value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, | ||
INTERFACE_DEF, LAMBDA, 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"/> | ||
</module> | ||
<module name="RightCurly"> | ||
<property name="id" value="RightCurlySame"/> | ||
<property name="tokens" | ||
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, | ||
LITERAL_DO"/> | ||
</module> | ||
<module name="OneStatementPerLine"/> | ||
<module name="MultipleVariableDeclarations"/> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="FallThrough"/> | ||
<module name="UpperEll"/> | ||
<module name="ModifierOrder"/> | ||
<module name="CovariantEquals"/> | ||
<module name="EmptyStatement"/> | ||
<module name="FallThrough"/> | ||
<module name="HiddenField"> | ||
<property name="ignoreConstructorParameter" value="true"/> | ||
</module> | ||
<module name="IllegalThrows"/> | ||
<module name="IllegalType"/> | ||
<module name="InnerAssignment"/> | ||
<module name="MultipleStringLiterals"/> | ||
<module name="MultipleVariableDeclarations"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="PackageDeclaration"/> | ||
<module name="ParameterAssignment"/> | ||
<module name="RedundantImport"/> | ||
<module name="RedundantModifier"/> | ||
<module name="StringLiteralEquality"/> | ||
<module name="SuperClone"/> | ||
<module name="UnnecessaryParentheses"/> | ||
<module name="UnusedImports"/> | ||
</module> | ||
|
||
<module name="SuppressionFilter"> | ||
<property name="file" value="${config_loc}/suppressions.xml" /> | ||
</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,12 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" | ||
"https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
|
||
<suppressions> | ||
<suppress checks="ConstantName" files="BackendFactoryModule\.java" lines="12" /> | ||
<suppress checks="ConstantName" files="RepositoryGraphFactory\.java" lines="15" /> | ||
<suppress checks="ConstantName" files="RepositoryGraph\.java" lines="25" /> | ||
<suppress checks="ConstantName" files="NullRepository\.java" lines="9" /> | ||
</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
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.