Scroll to navigation

FINDBUGS(1) User Commands FINDBUGS(1)


findbugs - Static Java Code Analyzer


findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]


No files to be analyzed

General options:

Pass args to JVM
Maximum Java heap size in megabytes (default=768)
Specify location of JRE
General FindBugs options:
analyze given project
specify FindBugs home directory
specify list of plugin Jar files to load
set analysis effort level
lower priority of experimental Bug Patterns
ensure analysis effort is at least 'default'
same as -effort:min (for backward compatibility)
show list of available detector plugins
user preferences file, e.g /path/to/project/.settings/edu.umd.cs.findbugs.core.prefs for Eclipse projects
Output options:
set timestamp of results to be current time
suppress error messages
report long bug codes
display progress in terminal window
set the release name of the analyzed application
report of any confidence level including experimental bug patterns
report warnings of any confidence level
report only medium and high confidence warnings [default]
report only high confidence warnings
only report issues with a bug rank at least as scary as that provided
Don't combine warnings that differ only in line number
sort warnings by class
XML output (optionally with messages)
xdoc XML output to use with Apache Maven
Generate HTML output (default stylesheet is default.xsl)
Use emacs reporting format
Relaxed reporting mode (more false positives!)
Save training data (experimental); output dir defaults to '.'
Use training data (experimental); input dir defaults to '.'
Redo analysis using configureation from previous analysis
Specify source info file (line numbers for fields/classes)
Descriptive name of project
redo analysis in provided file
Save output in named file
analyze nested jar/zip archives (default=true)
Output filtering options:
only report bugs in given categories
only analyze given classes and packages; end with .* to indicate classes in a package, .- to indicate a package prefix
exclude bugs that are also reported in the baseline xml output
exclude bugs matching given filter
include only bugs matching given filter
Exclude any bugs that match suppression filter loaded from fbp file
Detector (visitor) configuration options:
run only named visitors
omit named visitors
selectively enable/disable detectors
selectively enable/disable plugins

-adjustPriority <v1=(raise|lower)[,...]> raise/lower priority of warnings for given visitor(s)

Project configuration options:
set aux classpath for analysis
read aux classpath from standard input
read aux classpaths from a designated file
set source path for analyzed classes
set exit code of process
output empty warning file if no classes are specified
get list of classfiles/jarfiles from standard input rather than command line
get the list of class/jar files from a designated file
set cloud id
set cloud property
bug reporter decorators to explicitly enable/disable
print configuration and exit, without running analysis
print version, check for updates and exit, without running analysis


The full documentation for findbugs is maintained as a Texinfo manual. If the info and findbugs programs are properly installed at your site, the command

info findbugs

should give you access to the complete manual.

March 2018 findbugs 3.1.0-dev-20180312-UNKNOWN