-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add Findbugs #618
Add Findbugs #618
Changes from 6 commits
8968eb6
2cf7437
239d619
b211720
b4b9ad0
8669cc2
1e21cb6
5f2f107
540ddab
67cf899
f3c2248
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
|
||
import org.eclipse.jetty.server.Request; | ||
|
||
import java.io.IOException; | ||
|
@@ -69,6 +71,7 @@ public final class DataHandler extends PedanticHandler { | |
} | ||
|
||
@Override | ||
@SuppressFBWarnings("UW_UNCOND_WAIT") // Bug in FindBugs. There is a condition. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's actually a field in the warning that you can fill out called "justification" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice. I updated the suppressions to use that. |
||
protected void handleIfPassed(String target, | ||
Request baseRequest, | ||
HttpServletRequest request, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<FindBugsFilter> | ||
<Match> | ||
<Package name="~edu\.wpi\.grip\.generated.*" /> | ||
</Match> | ||
<Match> | ||
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" /> | ||
</Match> | ||
<Match> | ||
<Bug pattern="NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION" /> | ||
</Match> | ||
</FindBugsFilter> |
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.
Does this run on the tests too? We want to find possible bugs in the tests too right?
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.
@JLLeitschuh Fixed