edu.umd.cs.findbugs
Class FindBugs2
public
class
FindBugs2
extends Object
implements IFindBugsEngine
FindBugs driver class.
Experimental version to use the new bytecode-framework-neutral
codebase/classpath/classfile infrastructure.
Supports all features of the original FindBugs driver.
Author: David Hovemeyer
public static final boolean DEBUG
public FindBugs2()
Constructor.
public void addFilter(String filterFileName, boolean include)
public boolean emitTrainingOutput()
public void enableTrainingInput(String trainingInputDir)
public void enableTrainingOutput(String trainingOutputDir)
public void execute()
Execute the analysis.
For obscure reasons, CheckedAnalysisExceptions are re-thrown
as IOExceptions. However, these can only happen during the
setup phase where we scan codebases for classes.
Throws: IOException InterruptedException
public int getBugCount()
public String getCurrentClass()
public int getErrorCount()
public int getMissingClassCount()
public String getProjectName()
public String getReleaseName()
public String getTrainingInputDir()
public String getTrainingOutputDir()
public static void main(String[] args)
public void setAbridgedMessages(boolean xmlWithAbridgedMessages)
Set the detector factory collection to be used by this
FindBugs2 engine. This method should be called before
the execute() method is called.
Parameters: detectorFactoryCollection The detectorFactoryCollection to set.
public void setProject(
Project project)
public void setProjectName(String name)
public void setRelaxedReportingMode(boolean relaxedReportingMode)
public void setReleaseName(String releaseName)
public void setScanNestedArchives(boolean scanNestedArchives)
public void setSourceInfoFile(String sourceInfoFile)
public boolean useTrainingInput()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.