SpotBugs manual
This manual is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. To view a copy of this license, visit creativecommons.org or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
The name FindBugs and the FindBugs logo are trademarked by the University of Maryland.
Indices and tables
Contents
- Introduction
- Requirements
- Installing
- Running SpotBugs
- Using the SpotBugs GUI
- Using the SpotBugs Eclipse plugin
- Using the SpotBugs Ant task
- Using the SpotBugs Maven Plugin
- Using the SpotBugs Gradle Plugin
- Filter file
- Analysis Properties
- Effort
- Implement SpotBugs plugin
- Use SpotBugs Plugin on SonarQube
- SpotBugs FAQ
- Q1: I’m getting java.lang.UnsupportedClassVersionError when I try to run SpotBugs
- Q2: SpotBugs is running out of memory, or is taking a long time to finish
- Q3: What is the “auxiliary classpath”? Why should I specify it?
- Q4: The Eclipse plugin doesn’t load
- Q5: I’m getting a lot of false “OS” and “ODR” warnings
- Q6: The Eclipse plugin loads, but doesn’t work correctly
- Q7: Where is the Maven plugin for SpotBugs?
- SpotBugs Links
- Bug descriptions
- Detectors
- Guide for migration from SpotBugs 3.1 to 4.0
- Guide for migration from FindBugs 3.0 to SpotBugs 3.1
- Annotations
- edu.umd.cs.findbugs.annotations.CheckForNull
- edu.umd.cs.findbugs.annotations.CheckReturnValue
- edu.umd.cs.findbugs.annotations.CleanupObligation
- edu.umd.cs.findbugs.annotations.CreatesObligation
- edu.umd.cs.findbugs.annotations.DefaultAnnotation
- edu.umd.cs.findbugs.annotations.DefaultAnnotationForFields
- edu.umd.cs.findbugs.annotations.DefaultAnnotationForMethods
- edu.umd.cs.findbugs.annotations.DefaultAnnotationForParameters
- edu.umd.cs.findbugs.annotations.DesireNoWarning (Deprecated)
- edu.umd.cs.findbugs.annotations.DesireWarning (Deprecated)
- edu.umd.cs.findbugs.annotations.DischargesObligation
- edu.umd.cs.findbugs.annotations.ExpectWarning (Deprecated)
- edu.umd.cs.findbugs.annotations.NonNull
- edu.umd.cs.findbugs.annotations.NoWarning (Deprecated)
- edu.umd.cs.findbugs.annotations.Nullable
- edu.umd.cs.findbugs.annotations.OverrideMustInvoke
- edu.umd.cs.findbugs.annotations.PossiblyNull (Deprecated)
- edu.umd.cs.findbugs.annotations.ReturnValuesAreNonnullByDefault
- edu.umd.cs.findbugs.annotations.SuppressFBWarnings
- edu.umd.cs.findbugs.annotations.SuppressWarnings (Deprecated)
- edu.umd.cs.findbugs.annotations.UnknownNullness
- edu.umd.cs.findbugs.annotations.CleanupObligation (Deprecated)
- edu.umd.cs.findbugs.annotations.CreatesObligation (Deprecated)
- edu.umd.cs.findbugs.annotations.DischargesObligation (Deprecated)