-
-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure checkstyle, remove code-assert (#1803)
* Configure checkstyle, remove code-assert * Merge sun, google, and custom rules * Import control rules, checkstyle fixes * Codacy says I can do better at bash
- Loading branch information
Showing
28 changed files
with
1,454 additions
and
185 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
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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,62 @@ | ||
<!DOCTYPE suppressions PUBLIC | ||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.0//EN" | ||
"https://checkstyle.org/dtds/suppressions_1_0.dtd"> | ||
|
||
<suppressions> | ||
<suppress checks=".*" files="\.properties"/> | ||
<suppress checks=".*" files="\.xml"/> | ||
<suppress checks=".*" files="[\\/]demo[\\/].*"/> | ||
|
||
<!-- Sun checks --> | ||
<suppress checks="DesignForExtension" files="\.java"/> | ||
<suppress checks="FinalParameters" files="\.java"/> | ||
<suppress checks="HiddenField" files="\.java"/> | ||
<suppress checks="InnerAssignment" files="\.java"/> | ||
<suppress checks="JavadocStyle" files="\.java"/> | ||
<suppress checks="JavadocVariable" files="\.java"/> | ||
<suppress checks="LineLength" files="\.java"/> | ||
<suppress checks="MagicNumber" files="\.java"/> | ||
<suppress checks="MethodLength" files="\.java"/> | ||
<suppress checks="MissingJavadocMethod" files="\.java"/> | ||
<suppress checks="NewlineAtEndOfFile" files="\.java"/> | ||
<suppress checks="NoWhitespaceAfter" files="\.java"/> | ||
<suppress checks="OperatorWrap" files="\.java"/> | ||
<suppress checks="ParameterNumber" files="\.java"/> | ||
|
||
<!-- Intentional style breaks --> | ||
<suppress checks="ConstantName" files="ParseUtil\.java" lines="115-135"/> | ||
<suppress checks="VisibilityModifier" files="SmcUtil\.java"/> | ||
<suppress checks="VisibilityModifier" files="WmiQueryHandler\.*" lines="63,66"/> | ||
<suppress checks="VisibilityModifier" files="Memoizer\.*" lines="76-78"/> | ||
|
||
<!-- JNA convention --> | ||
<suppress checks="InterfaceIsType" files="[\\/]jna[\\/].*"/> | ||
<suppress checks="VisibilityModifier" files="[\\/]jna[\\/].*"/> | ||
|
||
<suppress checks="ConstantName" files="[\\/]jna[\\/].*"/> | ||
<suppress checks="MemberName" files="[\\/]jna[\\/].*"/> | ||
<suppress checks="MethodName" files="[\\/]jna[\\/].*"/> | ||
<suppress checks="ParameterName" files="[\\/]jna[\\/].*"/> | ||
<suppress checks="TypeName" files="[\\/]jna[\\/].*"/> | ||
|
||
<!-- Imports for classes linked in javadocs --> | ||
<suppress checks="UnusedImports" files="(CentralProcessor|OSDesktopWindow|OSProcess)\.java"/> | ||
|
||
<!-- Google checks --> | ||
<suppress checks="AbbreviationAsWordInName" files="\.java"/> | ||
<suppress checks="CustomImportOrder" files="\.java"/> | ||
<suppress checks="EmptyLineSeparator" files="\.java"/> | ||
<suppress checks="Indentation" files="\.java"/> | ||
<suppress checks="JavadocParagraph" files="\.java"/> | ||
<suppress checks="LocalVariableName" files="\.java"/> | ||
<suppress checks="MissingJavadocType" files="\.java"/> | ||
<suppress checks="SummaryJavadoc" files="\.java"/> | ||
<suppress checks="VariableDeclarationUsageDistance" files="\.java"/> | ||
|
||
<suppress checks="(Member|Parameter)Name" files="[\\/]tuples[\\/].*"/> | ||
<suppress checks="(Member|Parameter)Name" files="(WindowsPowerSource|SmcUtil|NetStat|ThreadInfo|EnumWindows).*"/> | ||
|
||
<!-- Test files --> | ||
<suppress checks="(JavadocPackage|MemberName|ConstantName|StaticVariableName)" files="(.*Test|TestConstants)\.java"/> | ||
<suppress checks="(ConstantName|VisibilityModifier)" files="SystemInfoTest\.java"/> | ||
</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,19 @@ | ||
<?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="TreeWalker"> | ||
<!-- add custom rules below this line --> | ||
<module name="ImportControl"> | ||
<property name="id" value="ImportControlMain" /> | ||
<property name="file" value="config/import-control.xml" /> | ||
<property name="path" value="^.*[\\/]src[\\/]main[\\/].*$" /> | ||
</module> | ||
<module name="ImportControl"> | ||
<property name="id" value="ImportControlTest" /> | ||
<property name="file" value="config/import-control-test.xml" /> | ||
<property name="path" value="^.*[\\/]src[\\/]test[\\/].*$" /> | ||
</module> | ||
</module> | ||
</module> |
Oops, something went wrong.