From 4e18f3946721647c5cb43e3a75470373abd024d3 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 10 Jun 2020 14:49:25 +0100 Subject: [PATCH] Upgrade checkstyle to version 8.32 Google style This review upgrades the checckstyle in ONAP to version 8.32, and re-aligns the ONAP style definition with the 8.32 version of the Google style guide. This change was triggered by incompatible changes in checkstyle version 8.32. Checkstyle has removed the directives "allowMissingThrowsTag" and "allowThrowsTagsForSubclasses". These directives controlled whether the existence of @Throws tags should be checked or not. In ONAP, these directives were set to "don't check". The default behaviour in checkstyle now is not to check @Throws javadoc tags for existence. See: https://github.com/checkstyle/checkstyle/issues/7329 Issue-ID: INT-1271 Change-Id: Iaabbf05b6aaf244388f654aa4e965da3d3a4f4e9 Signed-off-by: liamfallon --- .../resources/onap-checkstyle/onap-java-style.xml | 372 ++++++++++++++------- oparent-python/pom.xml | 2 +- oparent/pom.xml | 10 +- 3 files changed, 248 insertions(+), 136 deletions(-) diff --git a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml index de1316f..609b3ee 100644 --- a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml @@ -1,7 +1,7 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> - - + - + + + + + + + + + + + + + + + + - - - - - + + + + - - + + + - + - - - + + + - - - + + + + + + + + - - - - - + + + + + - + - - + + + + + + + + + + + + + + + - - - - + + + + + + - - - - - - - - - + value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)" /> + + + + + + + + + - + + + + + + + + + + + + + + + + + + - - + + + + - - + + + - - + + - + + - - + + - - + + + + + + + + + + - - - - + + - - + + - - + + + + + + - + - - - - + + + + - - - - - - + + + + + + - - + + + - - + + - - - + + + + + + + + + + + + + + - - - + + - + + - - + + + - - - - + + + + + - + - - + + - - - - - - + + + + + - - - - + + + + + - - + + - + - + + + + + + + + + - diff --git a/oparent-python/pom.xml b/oparent-python/pom.xml index 7fffe7c..e5ccd0e 100644 --- a/oparent-python/pom.xml +++ b/oparent-python/pom.xml @@ -2,6 +2,7 @@