forked from checkstyle/sonar-checkstyle
-
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.
Issue checkstyle#231: update to CS 8.22
- Loading branch information
Daniel Muehlbachler
committed
Sep 10, 2019
1 parent
1f56ee9
commit 3720bde
Showing
10 changed files
with
121 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
13 changes: 13 additions & 0 deletions
13
...style/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.OrderedPropertiesCheck.html
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,13 @@ | ||
<p> | ||
Detects if keys in properties files are in correct order. | ||
<br> | ||
Rationale: Sorted properties make it easy for people to find required properties by name in file. It makes merges | ||
more easy. While there are no problems at runtime. This check is valuable only on files with string resources where | ||
order of lines does not matter at all, but this can be improved. E.g.: | ||
checkstyle/src/main/resources/com/puppycrawl/tools/checkstyle/messages.properties You may suppress warnings of this | ||
check for files that have an logical structure like build files or log4j configuration files. See SuppressionFilter. | ||
<suppress checks="OrderedProperties" files="log4j.properties|ResourceBundle/Bug.*.properties|logging.properties"/> | ||
<br> | ||
Known limitation: The key should not contain a newline. The string compare will work, but not the line number | ||
reporting. | ||
</p> |
4 changes: 4 additions & 0 deletions
4
...com.puppycrawl.tools.checkstyle.checks.coding.UnnecessarySemicolonInEnumerationCheck.html
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,4 @@ | ||
<p> | ||
Checks if unnecessary semicolon is in enum definitions. Semicolon is not needed if enum body contains only enum | ||
constants. | ||
</p> |
3 changes: 3 additions & 0 deletions
3
...uppycrawl.tools.checkstyle.checks.coding.UnnecessarySemicolonInTryWithResourcesCheck.html
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,3 @@ | ||
<p> | ||
Checks if unnecessary semicolon is used in last resource declaration. | ||
</p> |
8 changes: 8 additions & 0 deletions
8
...checkstyle/com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocPackageCheck.html
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 @@ | ||
<p> | ||
Checks for missing Javadoc comments in package-info.java files. | ||
<br> | ||
Rationale: description and other related documentation for a package can be written up in the package-info.java file | ||
and it gets used in the production of the Javadocs. See <a | ||
href="https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html#packagecomment">link</a> for | ||
more info. | ||
</p> |
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