FINDBUGS(1)
π¦ findbugs(1) π¦
okay bestie, sit down, hydrate, because we are about to talk about findbugs β yes, the static Java code analyzer, and yes she is that girl. π
β¨ NAME β¨
findbugs β Static Java Code Analyzer π
π SYNOPSIS π
findbugs [general options] -textui [command line options...]
[jar/zip/class files, directories...]
likeβ¦ you give her some general options, you say -textui, you give her command line options, and then you hand her your jar/zip/class files and directories. that's the whole vibe. π«Ά
π DESCRIPTION π
No files to be analyzed
(i know. i KNOW. that's literally what it says. mysterious, minimal, unbothered. she contains multitudes. π)
π General options:
-jvmArgs argsβ passargsstraight through to the JVM, no notes-maxHeap sizeβ biggest Java heap size, in megabytes (default=768) β she needs her space, okay?-javahome <dir>β tell her where the JRE lives
π General FindBugs options:
-project <project>β analyze the project you named-home <home directory>β point her at the FindBugs home directory-pluginList <jar1[:jar2...]>β give her a list of plugin Jar files to load-effort[:min|less|default|more|max]β set the analysis effort level, pick your fighter-adjustExperimentalβ lower the priority of experimental Bug Patterns-workHardβ make sure analysis effort is at leastdefault, bestie is grinding-conserveSpaceβ same as-effort:min(it's here for backward compatibility, an icon of tradition)-showPluginsβ show the list of available detector plugins-userPrefs <filename>β user preferences file, e.g./path/to/project/.settings/edu.umd.cs.findbugs.core.prefsfor Eclipse projects
π Output options:
-timestampNowβ set the timestamp of results to the current time β°-quietβ suppress error messages (shhh, she's in her silent era)-longBugCodesβ report long bug codes-progressβ display progress in the terminal window so you're not just staring at nothing-release <release name>β set the release name of the analyzed application-experimentalβ report of any confidence level, including experimental bug patterns-lowβ report warnings of any confidence level-mediumβ report only medium and high confidence warnings [default] β¨-highβ report only high confidence warnings-maxRank <rank>β only report issues with a bug rank at least as scary as the one you provided π±-dontCombineWarningsβ don't combine warnings that differ only in line number-sortByClassβ sort warnings by class-xml[:withMessages]β XML output (optionally with messages)-xdocsβ xdoc XML output to use with Apache Maven-html[:stylesheet]β generate HTML output (the default stylesheet isdefault.xsl)-emacsβ use emacs reporting format-relaxedβ Relaxed reporting mode (more false positives!)-train[:outputDir]β save training data (experimental); the output dir defaults to.-useTraining[:inputDir]β use training data (experimental); the input dir defaults to.-redoAnalysis <filename>β redo analysis using configuration from a previous analysis-sourceInfo <filename>β specify source info file (line numbers for fields/classes)-projectName <project name>β descriptive name of the project-reanalyze <filename>β redo analysis in the provided file-output <filename>β save output in the named file-nested[:true|false]β analyze nested jar/zip archives (default=true)
πΈ Output filtering options:
-bugCategories <cat1[,cat2...]>β only report bugs in the categories you listed-onlyAnalyze <classes/packages>β only analyze the given classes and packages; end with.*to indicate classes in a package,.-to indicate a package prefix-excludeBugs <baseline bugs>β exclude bugs that are also reported in the baseline xml output-exclude <filter file>β exclude bugs matching the given filter-include <filter file>β include only bugs matching the given filter-applySuppressionβ exclude any bugs that match the suppression filter loaded from anfbpfile
π§ Detector (visitor) configuration options:
-visitors <v1[,v2...]>β run only the named visitors-omitVisitors <v1[,v2...]>β omit the named visitors-chooseVisitors <+v1,-v2,...>β selectively enable/disable detectors-choosePlugins <+p1,-p2,...>β selectively enable/disable plugins-adjustPriority <v1=(raise|lower)[,...]>β raise/lower the priority of warnings for the given visitor(s)
π Project configuration options:
-auxclasspath <classpath>β set the aux classpath for analysis-auxclasspathFromInputβ read the aux classpath from standard input-auxclasspathFromFile <filepath>β read aux classpaths from a designated file-sourcepath <source path>β set the source path for the analyzed classes-exitcodeβ set the exit code of the process-noClassOkβ output an empty warning file if no classes are specified-xargsβ get the list of classfiles/jarfiles from standard input rather than the command line-analyzeFromFile <filepath>β get the list of class/jar files from a designated file-cloud <id>β set the cloud id βοΈ-cloudProperty <key=value>β set a cloud property-bugReporters <name,name2,-name3>β bug reporter decorators to explicitly enable/disable-printConfigurationβ print configuration and exit, without running analysis-versionβ print version, check for updates and exit, without running analysis
π SEE ALSO π
the full documentation for findbugs is maintained as a Texinfo manual. if the info and findbugs programs are properly installed at your site, then this command
info findbugs
should give you access to the complete manual. iykyk π«Ά
and that's the whole page bestie, no cap, every flag accounted for π
this was findbugs 3.1.0-dev-20180312-UNK... from March 2018 β yeah she's vintage, she's archive-core, and she ate. mwah. π β¨
π¦ where this page comes from
- debian bookworm: findbugs 3.1.0~preview2-3 Β· LGPL-2.1-or-later
- ubuntu jammy: findbugs 3.1.0~preview2-3 Β· LGPL-2.1-or-later
- ubuntu noble: findbugs 3.1.0~preview2-3 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms