diff options
author | ToineSiebelink <toine.siebelink@est.tech> | 2022-03-30 09:56:24 +0100 |
---|---|---|
committer | ToineSiebelink <toine.siebelink@est.tech> | 2022-03-30 11:29:13 +0100 |
commit | f95bafef87324b634305e1b98cf17838aa998d26 (patch) | |
tree | da4b0523c69f0e365c5a4fdb44da12adfe5fdb5c | |
parent | fff3e78397f8d50d8dfd1d23365b0ccbff71a848 (diff) |
Enable @surpressWarnings for Checkstylejakarta
Documentation is a bit ambigous but below changes should enable
@SupressWarnings (in source code) for checkstyle rules
we have some false positives from Checkstyle we want to supress this way
e.g. https://tinyurl.com/4b527vvr lines 258/259; checkstyle forced us
to add those lines, instead I want to supress the warning on this method
using annotation like @supresswraning(checkstyle:missingSwitchDefault))
Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I07f865a279b4951f2ce3240fedcec6b5c46933e0
-rw-r--r-- | checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml | 2 |
1 files changed, 2 insertions, 0 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 4f03bae..b3b4df9 100644 --- a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml @@ -54,6 +54,7 @@ default="checkstyle-suppressions.xml" /> <property name="optional" value="true" /> </module> + <module name="SuppressWarningsFilter"/> <!-- Checks for whitespace --> <!-- See http://checkstyle.org/config_whitespace.html --> @@ -332,5 +333,6 @@ default="checkstyle-xpath-suppressions.xml" /> <property name="optional" value="true" /> </module> + <module name="SuppressWarningsHolder"/> </module> </module> |