From f133be23c3fab4609e969a89ad64869bc8a7c38f Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Wed, 22 Aug 2018 14:02:14 -0400 Subject: Make checkstyle warnings fail For this repo, we add an suppression filter for some abbreviation names. It is far too cumbersome to rename these checkstyle issues at this time. We will do so post-Casablanca release. We copy the oparent checkstyle pom settings and set to fail on any warnings. Change-Id: Icfbd005819a3289acd30796693be85c2ea460212 Issue-ID: POLICY-881 Signed-off-by: Pamela Dragosh --- checkstyle-suppressions.xml | 11 +++++++ pom.xml | 37 ++++++++++++++++++++++ .../utils/properties/PropertyConfiguration.java | 2 +- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 checkstyle-suppressions.xml diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml new file mode 100644 index 00000000..2e03c646 --- /dev/null +++ b/checkstyle-suppressions.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/pom.xml b/pom.xml index 96632383..076eb3f2 100644 --- a/pom.xml +++ b/pom.xml @@ -252,6 +252,43 @@ + + maven-checkstyle-plugin + + + onap-java-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory}/src/main/java + true + true + true + + + checkstyle-suppressions.xml + true + true + warning + + + + + + org.onap.oparent + checkstyle + ${oparent.version} + compile + + + diff --git a/utils/src/main/java/org/onap/policy/common/utils/properties/PropertyConfiguration.java b/utils/src/main/java/org/onap/policy/common/utils/properties/PropertyConfiguration.java index 653fe484..46003bae 100644 --- a/utils/src/main/java/org/onap/policy/common/utils/properties/PropertyConfiguration.java +++ b/utils/src/main/java/org/onap/policy/common/utils/properties/PropertyConfiguration.java @@ -336,7 +336,7 @@ public class PropertyConfiguration { * * @param props properties from which to get the value * @param propnm name of the property of interest - * @return + * @return the raw property value */ protected String getRawPropertyValue(Properties props, String propnm) { return props.getProperty(propnm); -- cgit 1.2.3-korg