-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set config_loc property for Checkstyle (#235)
This is a half-official property, that is not set by Checkstyle itself by default, but provided by IDE tools for Eclipse and IDEA. In order to use the same configuration for IDE and Sputnik, it's useful to have this property set here also Co-authored-by: Gabor Garancsi <[email protected]>
- Loading branch information
Showing
4 changed files
with
73 additions
and
5 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
35 changes: 35 additions & 0 deletions
35
src/test/resources/checkstyle/checkstyle-with-suppressions.xml
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,35 @@ | ||
<?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"> | ||
<module name="SuppressionFilter"> | ||
<property name="file" value="${config_loc}/suppressions.xml"/> | ||
</module> | ||
<module name="NewlineAtEndOfFile"> | ||
<property name="lineSeparator" value="lf"/> | ||
</module> | ||
<module name="JavadocPackage"/> | ||
|
||
<module name="TreeWalker"> | ||
<!-- Javadoc Comments --> | ||
<module name="AtclauseOrder"/> | ||
<module name="JavadocMethod"> | ||
<property name="allowUndeclaredRTE" value="true"/> | ||
<property name="allowThrowsTagsForSubclasses" value="true"/> | ||
<property name="allowMissingPropertyJavadoc" value="true"/> | ||
</module> | ||
<module name="JavadocParagraph"/> | ||
<module name="JavadocStyle"> | ||
<property name="scope" value="public"/> | ||
</module> | ||
<module name="JavadocTagContinuationIndentation"/> | ||
<module name="JavadocType"> | ||
<property name="authorFormat" value="\S"/> | ||
<!-- avoid errors on tag '@noinspection' --> | ||
<property name="allowUnknownTags" value="true"/> | ||
</module> | ||
<module name="JavadocVariable"/> | ||
<module name="NonEmptyAtclauseDescription"/> | ||
<module name="SingleLineJavadoc"/> | ||
<module name="SummaryJavadoc"/> | ||
</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" encoding="UTF-8"?> | ||
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
<suppress files="TestFile.java" checks="JavadocPackage"/> | ||
</suppressions> |