-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Spotbugs plugin #262
Conversation
96adc61
to
8748afd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea. I agree that it may become troublesome for some of the rules that cause a lot of false positive but I wonder if it will often trigger, personally I think we could try this tool for some time and then see if it's an hindrance or not. Also, I will need to try the Intellij plugin as well.
Besides, thanks for all the fixes 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! The code looks good but I left one question.
It's definitely nice to have so let's see how it goes.
I'll merge after we discuss it tomorrow.
@@ -1,7 +1,5 @@ | |||
package com.scalar.db.storage.cassandra; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering what was wrong with the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was the one to fix a synchronized
related warning. Let's discuss it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you 🙂
This PR introduces the
Spotbugs
plugin that uses static analysis to look for bugs in Java code. Also, I fixed some Spotbugs errors in this PR.Honestly, I'm not sure it's a good idea for us to use this plugin because it shows some false positives, and we need to use
SuppressFBWarnings
annotation to remove them, which might be annoying. But of course, I think it brings many benefits to us. So I would like to discuss whether or not we use this plugin here.Besides this plugin, I'm thinking that we can use the
errorprone
plugin, as well:https://errorprone.info/
https://github.com/tbroyer/gradle-errorprone-plugin
Please take a look!