Skip to content

Commit

Permalink
Update checkstyle version and licenses (hazelcast#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Leszko committed Aug 5, 2020
1 parent 1e7615e commit 17ef95c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion checkstyle/ClassHeader.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
*/
23 changes: 14 additions & 9 deletions checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
</module>

<!-- Enable suppression of file contents using //CHECKSTYLE:[ON|OFF] comments -->
<!--
<module name="SuppressionCommentFilter"/>
-->

<!-- Enable the suppression annotation @SuppressWarnings("checkstyle:lowercasecheckname"} -->
<module name="SuppressWarningsFilter"/>
Expand Down Expand Up @@ -103,10 +105,11 @@
<property name="fileExtensions" value="java"/>
</module>

<module name="TreeWalker">
<!-- Activate comment suppression filters -->
<module name="FileContentsHolder"/>
<module name="LineLength">
<property name="max" value="130"/>
</module>

<module name="TreeWalker">
<!-- Needed for SuppressWarningsFilter to work -->
<module name="SuppressWarningsHolder"/>

Expand Down Expand Up @@ -158,9 +161,6 @@

<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<module name="LineLength">
<property name="max" value="130"/>
</module>
<module name="MethodLength">
<property name="tokens" value="METHOD_DEF"/>
<property name="max" value="60"/>
Expand Down Expand Up @@ -224,7 +224,6 @@

<!-- Checks for common coding problems -->
<!-- See http://checkstyle.sf.net/config_coding.html -->
<module name="ArrayTrailingComma"/>
<module name="CovariantEquals"/>
<module name="DeclarationOrder"/>
<module name="ExplicitInitialization"/>
Expand All @@ -250,6 +249,7 @@
<module name="InnerAssignment"/>
<module name="ReturnCount">
<property name="max" value="8"/>
<property name="maxForVoid" value="8"/>
</module>
<module name="NestedIfDepth">
<property name="max" value="2"/>
Expand Down Expand Up @@ -297,7 +297,12 @@
<property name="max" value="12"/>
</module>
<module name="NPathComplexity">
<property name="max" value="50"/>
<!-- TODO Agree on the value
Checkstyle 7.7 improved the NPath algorithm further that leads to higher NPath counts.
7.6 passes with max 50, 7.7 needs it to be set to at least 216
the default threshold is 200
-->
<property name="max" value="250"/>
</module>

<!-- Miscellaneous other checks. -->
Expand All @@ -313,4 +318,4 @@
value="Please use UuidUtil.newUnsecureUUID() or UuidUtil.newSecureUUID() instead of UUID.randomUUID()"/>
</module>
</module>
</module>
</module>
11 changes: 0 additions & 11 deletions checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,4 @@

<suppressions>

<!-- Suppress strict duplicate code checking -->
<suppress checks="StrictDuplicateCode" files="\.java" lines="1-15"/>

<!-- Exclude implementation packages from JavaDoc checks -->
<suppress checks="JavadocPackage" files="/impl/"/>
<suppress checks="JavadocType" files="/impl/"/>
<suppress checks="JavadocVariable" files="/impl/"/>

<!-- Exclude Clover instrumented sources -->
<suppress checks="" files="/src-instrumented/"/>

</suppressions>
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OF ANY KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations under the License.
--><project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>hazelcast-gcp</name>
Expand Down Expand Up @@ -41,7 +43,7 @@
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>

<maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
<maven.checkstyle.plugin.version>2.15</maven.checkstyle.plugin.version>
<maven.checkstyle.plugin.version>3.1.1</maven.checkstyle.plugin.version>
<maven.spotbuts.plugin.version>3.1.5</maven.spotbuts.plugin.version>
<maven.sonar.plugin.version>3.3.0.603</maven.sonar.plugin.version>
<maven.jacoco.plugin.version>0.8.5</maven.jacoco.plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#

com.hazelcast.gcp.GcpDiscoveryStrategyFactory

0 comments on commit 17ef95c

Please sign in to comment.