From a0e0c7840f72392152a970d88a5a66d394c4a793 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 28 Sep 2018 04:58:26 -0400 Subject: Set drools-pdp checkstyle config Fixed last remaining checkstyle issues along with setting the pom.xml to the correct path setting. Fixed forbidden summary fragments, not allowed to prepend summary with "This method returns" Issue-ID: POLICY-1153 Change-Id: I267842080494132a7b5507731e14f027a3f6fe44 Signed-off-by: Pamela Dragosh --- .../checkstyle-suppressions.xml | 33 ++++++++++++++++++++ feature-test-transaction/pom.xml | 36 ++++++++++++++++++++++ .../drools/testtransaction/TestTransaction.java | 2 +- 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 feature-test-transaction/checkstyle-suppressions.xml (limited to 'feature-test-transaction') diff --git a/feature-test-transaction/checkstyle-suppressions.xml b/feature-test-transaction/checkstyle-suppressions.xml new file mode 100644 index 00000000..7112bbe4 --- /dev/null +++ b/feature-test-transaction/checkstyle-suppressions.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/feature-test-transaction/pom.xml b/feature-test-transaction/pom.xml index 92c8e217..f16a50f2 100644 --- a/feature-test-transaction/pom.xml +++ b/feature-test-transaction/pom.xml @@ -84,6 +84,42 @@ + + maven-checkstyle-plugin + + + onap-java-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + true + true + true + + + ${project.baseUri}checkstyle-suppressions.xml + true + true + warning + + + + + + org.onap.oparent + checkstyle + ${oparent.version} + compile + + + diff --git a/feature-test-transaction/src/main/java/org/onap/policy/drools/testtransaction/TestTransaction.java b/feature-test-transaction/src/main/java/org/onap/policy/drools/testtransaction/TestTransaction.java index 3adecddc..c778bf67 100644 --- a/feature-test-transaction/src/main/java/org/onap/policy/drools/testtransaction/TestTransaction.java +++ b/feature-test-transaction/src/main/java/org/onap/policy/drools/testtransaction/TestTransaction.java @@ -141,7 +141,7 @@ class TTControllerTask implements Runnable { if (!(this.controller.getDrools().isBrained())) { this.alive = false; - logger.error(this + ": unknown drools controller"); + logger.error("{}: unknown drools controller", this); return; } -- cgit 1.2.3-korg