Skip to content

Commit

Permalink
Update code analysis tools
Browse files Browse the repository at this point in the history
  • Loading branch information
twogee committed Jul 29, 2020
1 parent 1a13b69 commit 3b7931f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
6 changes: 3 additions & 3 deletions check.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<!-- Ant Checkstyle -->
<property name="checkstyle.src.dir" location="${etc.dir}/checkstyle"/>
<property name="checkstyle.version"
value="6.19"
value="8.28"
description="Which version of Checkstyle to use"/>
<property name="checkstyle.reportdir"
location="${reports.dir}/checkstyle"
Expand Down Expand Up @@ -88,7 +88,7 @@

<!-- Findbugs: Running SpotBugs -->
<property name="spotbugs.version"
value="3.1.4"
value="3.1.12"
description="Which version of SpotBugs to use"/>
<property name="findbugs.reportdir"
location="${reports.dir}/findbugs"
Expand Down Expand Up @@ -130,7 +130,7 @@

<!-- OWASP Dependency Check -->
<property name="owasp.dc.version"
value="3.2.1"
value="5.2.4"
description="Which version of OWASP Dependency Check to use"/>
<property name="owasp.dc.report.dir"
value="${reports.dir}/owasp-dc"
Expand Down
46 changes: 26 additions & 20 deletions src/etc/checkstyle/checkstyle-config
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
<!-- size limits -->
<module name="FileLength"/>
<module name="FileTabCharacter"/>
<module name="LineLength">
<property name="max" value="100"/>
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
<property name="tabWidth" value="4"/>
</module>

<module name="RegexpSingleline">
<!-- \s matches whitespace character, $ matches end of line. -->
<property name="format" value="\s+$"/>
</module>

<module name="TreeWalker">
<!-- Javadoc requirements -->
Expand All @@ -37,7 +47,7 @@
</module>
<module name="JavadocMethod">
<property name="scope" value="protected"/>
<property name="allowUndeclaredRTE" value="true"/>
<!-- <property name="allowUndeclaredRTE" value="true"/> -->
</module>
<module name="JavadocVariable">
<property name="scope" value="public"/>
Expand All @@ -61,11 +71,6 @@
<module name="UnusedImports"/>

<!-- size limits -->
<module name="LineLength">
<property name="max" value="100"/>
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
<property name="tabWidth" value="4"/>
</module>
<module name="MethodLength"/>
<module name="ParameterNumber"/>

Expand Down Expand Up @@ -93,13 +98,14 @@

<!-- Checks for common coding problems -->
<!-- <module name="AvoidInlineConditionals"/> -->
<!-- <module name="DoubleCheckedLocking"/> --> <!-- removed in checkstyle 5.6 -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="IllegalInstantiation">
<property name="classes" value="java.lang.Boolean"/>
</module>
<!-- <module name="InnerAssignment"/> -->
<!-- <module name="MagicNumber"/> -->
<module name="InnerAssignment"/>
<module name="MagicNumber"/>
<module name="MissingSwitchDefault"/>
<!-- Allow redundant throw declarations for doc purposes
<module name="RedundantThrows">
Expand All @@ -121,19 +127,19 @@
<!-- <module name="TodoComment"/> -->
<module name="UpperEll"/>
<!-- allow comment suppression of checks -->
<module name="FileContentsHolder"/>
</module>

<module name="RegexpSingleline">
<!-- \s matches whitespace character, $ matches end of line. -->
<property name="format" value="\s+$"/>
<!-- <module name="FileContentsHolder"/> --><!-- removed in 8.2 -->
<!--
<module name="GenericIllegalRegexp">
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
</module>
-->
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CheckStyle\:([\w\|]+) *OFF"/>
<property name="onCommentFormat" value="CheckStyle\:([\w\|]+) *ON"/>
<property name="checkFormat" value="$1"/>
</module>
</module>

<!-- <module name="au.com.redhillconsulting.simian.SimianCheck"/> -->
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CheckStyle\:([\w\|]+) *OFF"/>
<property name="onCommentFormat" value="CheckStyle\:([\w\|]+) *ON"/>
<property name="checkFormat" value="$1"/>
</module>

</module>

0 comments on commit 3b7931f

Please sign in to comment.