Skip SpotBugs for generated code 29/109429/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Dec 2023 20:50:19 +0000 (21:50 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Dec 2023 23:57:25 +0000 (00:57 +0100)
SpotBugs-4.8.3 allows us to explicitly exclude classes from analysis,
take advantage of this facility to suppress Spotbugs on all classes
generated from YANG models.

Change-Id: I81a09e7ba7a1bac9ad1884b36f0bd98a7a3ecde3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/binding-parent/pom.xml

index 9f4d98186f20e931d3b9abbe55e9f8125869eda8..1ed2a3b2c5e61176d0912d2da3dfea80e4d6b1d8 100644 (file)
     <artifactId>binding-parent</artifactId>
     <packaging>pom</packaging>
 
+    <properties>
+        <spotbugs.onlyAnalyze>!org.opendaylight.yang.gen.-</spotbugs.onlyAnalyze>
+    </properties>
+
     <build>
         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
         <resources>