Package rife.bld.extension.spotbugs
Enum Class SpotBugsFlag
- All Implemented Interfaces:
Serializable,Comparable<SpotBugsFlag>,Constable
Command line flags supported by SpotBugs
-textui.
Values correspond to flags accepted by edu.umd.cs.findbugs.FindBugs2
as of SpotBugs 4.9.8. See java -jar spotbugs.jar -textui -help.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLower priority of experimental Bug PatternsAdjust priority of warnings for given detectors or bug patternsGet the list of class/jar files from a designated fileExclude any bugs that match suppression filter loaded from fbp fileSet aux classpath for analysisRead aux classpaths from a designated fileRead aux classpath from standard inputOnly report bugs in given categories:-bugCategories cat1[,cat2...]Bug reporter decorators to explicitly enable/disableSelectively enable/disable plugins:-choosePlugins +p1,-p2,...Selectively enable/disable detectors:-chooseVisitors +v1,-v2,...Same as-effort:min, for backward compatibilityDon't combine warnings that differ only in line numberSet analysis effort level:-effort:[min|less|default|more|max]Use emacs reporting formatExclude bugs matching given filterExclude bugs that are also reported in the baseline xml outputSet exit code of processReport of any confidence level including experimental bug patternsReport only high confidence warningsSpecify SpotBugs home directoryGenerate HTML output:-html[:stylesheet]Include only bugs matching given filterSpecify location of JREPass args to JVMReport long bug codesReport warnings of any confidence levelMaximum Java heap size in megabytesOnly report issues with a bug rank at least as scary as that providedReport only medium and high confidence warnings [default]Analyze nested jar/zip archives:-nested[:true|false]Output empty warning file if no classes are specifiedOmit named visitors:-omitVisitors v1[,v2...]Only analyze given classes and packagesSave output in named fileSpecify list of plugin Jar files to load:-pluginList jar1[:jar2...]Print configuration and exit, without running analysisDisplay progress in terminal windowAnalyze given projectDescriptive name of projectSuppress error messagesRedo analysis in provided fileRedo analysis using configuration from previous analysisRelaxed reporting mode (more false positives!)Set the release name of the analyzed applicationSARIF 2.1.0 outputShow list of available detector pluginsSort warnings by classSpecify source info file (line numbers for fields/classes)Set source path for analyzed classesSet timestamp of results to be current timeSave training data (experimental):-train[:outputDir]Use training data (experimental):-useTraining[:inputDir]User preferences filePrint version, check for updates and exit, without running analysisRun only named visitors:-visitors v1[,v2...]Ensure analysis effort is at least 'default'Get list of classfiles/jarfiles from standard input rather than command linexdoc XML output to use with Apache MavenXML output:-xml[:withMessages]XML output with messages:-xml:withMessages -
Method Summary
Modifier and TypeMethodDescriptionflag()toString()static SpotBugsFlagReturns the enum constant of this class with the specified name.static SpotBugsFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADJUST_EXPERIMENTAL
Lower priority of experimental Bug Patterns -
ADJUST_PRIORITY
Adjust priority of warnings for given detectors or bug patterns -
ANALYZE_FROM_FILE
Get the list of class/jar files from a designated file -
APPLY_SUPPRESSION
Exclude any bugs that match suppression filter loaded from fbp file -
AUX_CLASSPATH
Set aux classpath for analysis -
AUX_CLASSPATH_FROM_FILE
Read aux classpaths from a designated file -
AUX_CLASSPATH_FROM_INPUT
Read aux classpath from standard input -
BUG_CATEGORIES
Only report bugs in given categories:-bugCategories cat1[,cat2...] -
BUG_REPORTERS
Bug reporter decorators to explicitly enable/disable -
CHOOSE_PLUGINS
Selectively enable/disable plugins:-choosePlugins +p1,-p2,... -
CHOOSE_VISITORS
Selectively enable/disable detectors:-chooseVisitors +v1,-v2,... -
CONSERVE_SPACE
Same as-effort:min, for backward compatibility -
DONT_COMBINE_WARNINGS
Don't combine warnings that differ only in line number -
EFFORT
Set analysis effort level:-effort:[min|less|default|more|max] -
EMACS
Use emacs reporting format -
EXCLUDE
Exclude bugs matching given filter -
EXCLUDE_BUGS
Exclude bugs that are also reported in the baseline xml output -
EXIT_CODE
Set exit code of process -
EXPERIMENTAL
Report of any confidence level including experimental bug patterns -
HIGH
Report only high confidence warnings -
HOME
Specify SpotBugs home directory -
HTML
Generate HTML output:-html[:stylesheet] -
INCLUDE
Include only bugs matching given filter -
JAVA_HOME
Specify location of JRE -
JVM_ARGS
Pass args to JVM -
LONG_BUG_CODES
Report long bug codes -
LOW
Report warnings of any confidence level -
MAX_HEAP
Maximum Java heap size in megabytes -
MAX_RANK
Only report issues with a bug rank at least as scary as that provided -
MEDIUM
Report only medium and high confidence warnings [default] -
NESTED
Analyze nested jar/zip archives:-nested[:true|false] -
NO_CLASS_OK
Output empty warning file if no classes are specified -
OMIT_VISITORS
Omit named visitors:-omitVisitors v1[,v2...] -
ONLY_ANALYZE
Only analyze given classes and packages -
OUTPUT
Save output in named file -
PLUGIN_LIST
Specify list of plugin Jar files to load:-pluginList jar1[:jar2...] -
PRINT_CONFIGURATION
Print configuration and exit, without running analysis -
PROGRESS
Display progress in terminal window -
PROJECT
Analyze given project -
PROJECT_NAME
Descriptive name of project -
QUIET
Suppress error messages -
REANALYZE
Redo analysis in provided file -
REDO_ANALYSIS
Redo analysis using configuration from previous analysis -
RELAXED
Relaxed reporting mode (more false positives!) -
RELEASE
Set the release name of the analyzed application -
SARIF
SARIF 2.1.0 output -
SHOW_PLUGINS
Show list of available detector plugins -
SORT_BY_CLASS
Sort warnings by class -
SOURCE_INFO
Specify source info file (line numbers for fields/classes) -
SOURCE_PATH
Set source path for analyzed classes -
TIMESTAMP_NOW
Set timestamp of results to be current time -
TRAIN
Save training data (experimental):-train[:outputDir] -
USER_PREFS
User preferences file -
USE_TRAINING
Use training data (experimental):-useTraining[:inputDir] -
VERSION
Print version, check for updates and exit, without running analysis -
VISITORS
Run only named visitors:-visitors v1[,v2...] -
WORK_HARD
Ensure analysis effort is at least 'default' -
XARGS
Get list of classfiles/jarfiles from standard input rather than command line -
XDOCS
xdoc XML output to use with Apache Maven -
XML
XML output:-xml[:withMessages] -
XML_WITH_MESSAGES
XML output with messages:-xml:withMessages
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SpotBugsFlag>
-
flag
- Returns:
- the literal flag, e.g.
"-noClassOk"
-