-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bound Checkstyle to
validate
goal for automated enforcement. (#1149)
- Loading branch information
Showing
6 changed files
with
86 additions
and
0 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,8 @@ | ||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
<!-- Disable all checks for protobuf-generated files. --> | ||
<suppress files=".*/kpl/Messages.java" checks="[a-zA-Z0-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?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"> | ||
<module name="FileTabCharacter"> | ||
<property name="eachLine" value="true"/> | ||
</module> | ||
|
||
<module name="LineLength"> | ||
<property name="fileExtensions" value="java"/> | ||
<property name="max" value="170"/> | ||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
</module> | ||
|
||
<module name="SuppressWithPlainTextCommentFilter"> | ||
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/> | ||
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)"/> | ||
<!-- $1 refers to the first match group in the regex defined in commentFormat --> | ||
<property name="checkFormat" value="$1"/> | ||
</module> | ||
|
||
<module name="TreeWalker"> | ||
<module name="AvoidStarImport"/> | ||
<module name="ConstantName"/> | ||
<module name="InvalidJavadocPosition"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MemberName"/> | ||
<module name="MethodName"/> | ||
<module name="NeedBraces"/> | ||
<module name="OneStatementPerLine"/> | ||
<module name="OneTopLevelClass"/> | ||
<module name="OuterTypeFilename"/> | ||
<module name="ParameterName"/> | ||
<module name="WhitespaceAfter"/> | ||
</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