Comments (8)
https://github.com/pacey/spotbugs-example
Bumping the plugin version to 1.6.2 in the build.gradle file will cause SpotBugs to show issues, where version 1.6.1 does not.
from spotbugs-gradle-plugin.
Hi, could you try to create Minimal, Complete, and Verifiable example? For now we have no information to reproduce your problem.
from spotbugs-gradle-plugin.
I'll try and find time today to throw an example project together
from spotbugs-gradle-plugin.
With the following patch, I could find a SE_NO_SERIALVERSIONID
in test case.
com.github.pacey.SampleTest$__spock_feature_0_1_closure1 is Serializable; consider declaring a serialVersionUID
diff --git a/build.gradle b/build.gradle
index 784a0ab..c1e8e6a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ import com.github.spotbugs.SpotBugsTask
plugins {
id 'java'
id 'groovy'
- id "com.github.spotbugs" version "1.6.1"
+ id "com.github.spotbugs" version "1.6.4"
}
group 'com.github.pacey'
from spotbugs-gradle-plugin.
I'm sure that it's not problem in spotbugs core, because following patch doesn't reproduce reported issue:
diff --git a/build.gradle b/build.gradle
index 784a0ab..d351f19 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,4 +28,8 @@ tasks.withType(SpotBugsTask) {
html.enabled = true
xml.enabled = false
}
-}
\ No newline at end of file
+}
+
+spotbugs {
+ toolVersion = '3.1.7'
+}
So problem should exist in gradle plugin itself. I will check these changes between 1.6.1 and 1.6.2.
from spotbugs-gradle-plugin.
@pacey in your environment, can you find other issues?
If we can find only SE_NO_SERIALVERSIONID
, it could be not bug but expected change introduced by #12. Previously we cannot handle multiple output directories, but 1.6.2 started support for it.
from spotbugs-gradle-plugin.
It's mainly just the SE_NO_SERIALVERSIONID
because we use the with (object) {}
block a lot. But maybe that shouldn't be reported as a bug?
from spotbugs-gradle-plugin.
OK, you think it's false positive of SpotBugs core, right? Then I recommend you to issue a ticket at https://github.com/spotbugs/spotbugs/issues It was designed for Java language, so it may lack consideration for other languages like this.
I believe this Gradle plugin itself has no problem; #12 is just working well. Let me close this issue. Thank you! :)
from spotbugs-gradle-plugin.
Related Issues (20)
- new false positive alert since version '5.2.0' HOT 3
- silence spotbugs warnings HOT 3
- java.lang.NoSuchMethodError: 'org.apache.commons.lang3.Range org.apache.commons.lang3.Range.of(java.lang.Comparable, java.lang.Comparable)' HOT 1
- SpotBugs using wrong Java SDK in Android Studio HOT 4
- plugin should add a space character when displaying failed report files HOT 2
- External stylesheet not used when defined in external gradle file HOT 3
- Replace depreated `BaseVariant` usages
- A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForWorker$SpotBugsExecutor HOT 4
- Plugin does not run on JDK8 HOT 1
- Reports not created for cached task HOT 2
- Groovy valueOf(String) for effort and reportLevel not working HOT 2
- Reports not being created HOT 1
- Configuration Cache compatibilities
- Spotbugs fails to run appropriately when space is present in project path
- GHA Build issues Windows
- How to disable an specific check across the entire project? HOT 1
- Spotbug task fails on CI with error "java.io.IOException: error=7, Argument list too long" HOT 5
- Configurations for effort and reportLevel are broken. HOT 14
- Dependency Dashboard
- Spotbugs plugin for gradle 6.0.0-beta4 is broken in Netbeans 19 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotbugs-gradle-plugin.