Skip to content

Commit

Permalink
Add spotbug exclude file
Browse files Browse the repository at this point in the history
  • Loading branch information
chamilaadhi committed Dec 13, 2023
1 parent 0565594 commit 5d19126
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

package org.wso2.carbon.apimgt.rest.api.common;
package org.wso2.carbon.apimgt.rest.api.devops;

import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.ArrayList;
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
<!--Exclude sources-->
<!--<excludeFilterFile>${maven.spotbugsplugin.exclude.file}</excludeFilterFile>-->
<excludeFilterFile>${maven.spotbugsplugin.exclude.file}</excludeFilterFile>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -2217,15 +2217,15 @@
<okio.wso2.version>3.5.0.wso2v1</okio.wso2.version>

<openfeign.version>11.0</openfeign.version>
<maven.spotbugsplugin.version>4.1.4</maven.spotbugsplugin.version>
<maven.spotbugsplugin.version>4.8.2.0</maven.spotbugsplugin.version>
<maven.checkstyle.plugin.version>3.0.0</maven.checkstyle.plugin.version>
<version.checkstyle>8.34</version.checkstyle>
<org.wso2.orbit.org.mapstruct.version>1.4.1.wso2v1</org.wso2.orbit.org.mapstruct.version>
<org.mapstruct.version>1.4.1.Final</org.mapstruct.version>
<analytics.event.publisher.client.version>1.2.3</analytics.event.publisher.client.version>
<analytics.event.publisher.client.version.range>[1.0.0,2.0.0)</analytics.event.publisher.client.version.range>
<org.wso2.orbit.atlassian.oai.version>2.12.1.wso2v2</org.wso2.orbit.atlassian.oai.version>
<maven.spotbugsplugin.exclude.file>spotbugs-exclude.xml</maven.spotbugsplugin.exclude.file>
<maven.spotbugsplugin.exclude.file>${project.parent.basedir}/../../spotbugs-exclude.xml</maven.spotbugsplugin.exclude.file>
<skip.aspectj>false</skip.aspectj>
<javax.jms.version>2.0.1</javax.jms.version>
<com.damnhandy.version>2.1.6</com.damnhandy.version>
Expand Down
31 changes: 31 additions & 0 deletions spotbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<FindBugsFilter>
<!-- Ignore negating result of compareTo -->
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>


<Match>
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
</Match>
<Match>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>

<Match>
<Bug pattern="PA_PUBLIC_PRIMITIVE_ATTRIBUTE"/>
</Match>
<Match>
<Bug pattern="URF_UNREAD_FIELD"/>
</Match>
<Match>
<Bug pattern="MS_EXPOSE_REP"/>
</Match>

<Match>
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
</Match>
</FindBugsFilter>

0 comments on commit 5d19126

Please sign in to comment.