Skip SpotBugs for generated code 34/109434/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Dec 2023 20:50:19 +0000 (21:50 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Dec 2023 09:41:37 +0000 (10:41 +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>
(cherry picked from commit e04be15a9540ad113a48aa1f08c8382813cf882b)

binding/binding-parent/pom.xml

index 6d3e884ea7ebb76dfba9d3a66a914f2d9ce1b4bc..24cfdc4b58b328da98996f00333fe69706372a8d 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>