You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/03/17 12:31:42 UTC
[groovy] branch GROOVY_3_0_X updated: Add rule exclusion capability
for spotbugs - first candidate: false positives for no serialVersionUUID in
generated closures.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
new 3480d92 Add rule exclusion capability for spotbugs - first candidate: false positives for no serialVersionUUID in generated closures.
3480d92 is described below
commit 3480d924ae80c9df66a028df1d1cceacd88f2ea9
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Mar 17 22:30:33 2020 +1000
Add rule exclusion capability for spotbugs - first candidate: false positives for no serialVersionUUID in generated closures.
---
config/spotbugs/exclude.xml | 11 +++++++++++
gradle/quality.gradle | 1 +
2 files changed, 12 insertions(+)
diff --git a/config/spotbugs/exclude.xml b/config/spotbugs/exclude.xml
new file mode 100644
index 0000000..5a0f9a4
--- /dev/null
+++ b/config/spotbugs/exclude.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <FindBugsFilter
+ xmlns="https://github.com/spotbugs/filter/3.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
+ <!-- Exclude "missing serialVersionUuid" checks for generated _closure classes -->
+ <Match>
+ <Class name="~.*_closure.*" />
+ <Bug pattern="SE_NO_SERIALVERSIONID" />
+ </Match>
+S</FindBugsFilter>
\ No newline at end of file
diff --git a/gradle/quality.gradle b/gradle/quality.gradle
index 7a23b82..48eb00d 100644
--- a/gradle/quality.gradle
+++ b/gradle/quality.gradle
@@ -144,6 +144,7 @@ allprojects { proj ->
projectName = proj.name
release = rootProject.version
}
+ excludeFilter = file("$rootProject.projectDir/config/spotbugs/exclude.xml")
ignoreFailures = true
effort = 'max'
maxHeapSize = '2g'