Class EmacsBugReporter
java.lang.Object
edu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
edu.umd.cs.findbugs.EmacsBugReporter
- All Implemented Interfaces:
RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger, ConfigurableBugReporter
BugReporter to output warnings in Emacs format.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractBugReporter
AbstractBugReporter.Error -
Field Summary
FieldsFields inherited from class TextUIBugReporter
OTHER_CATEGORY_ABBREV, outputStreamFields inherited from interface BugReporter
NORMAL, SILENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoReportBug(BugInstance bugInstance) Subclasses must override this.private StringfileNameFor(String packageName, String sourceName) voidfinish()Finish reporting bugs.Get the bug collection (if any) associated with this bug reportervoidobserveClass(ClassDescriptor classDescriptor) Observe a class being visited.protected voidprintBug(BugInstance bugInstance) Print bug in one-line format.Methods inherited from class TextUIBugReporter
checkBugInstance, emitLine, getOutputTarget, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, isDuplicateOf, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setOutputTarget, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriterMethods inherited from class AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getPriorityAdjuster, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityAdjuster, setPriorityThreshold, setRankThresholdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BugReporter
addObserver, getPriorityAdjuster, getProjectStats, reportBug, setErrorVerbosity, setPriorityAdjuster, setPriorityThresholdMethods inherited from interface ConfigurableBugReporter
setRankThresholdMethods inherited from interface IErrorLogger
logError, logError, reportMissingClass, reportMissingClass, reportMissingClass, reportSkippedAnalysis
-
Field Details
-
seenAlready
-
sourceFileNameCache
-
-
Constructor Details
-
EmacsBugReporter
public EmacsBugReporter()
-
-
Method Details
-
observeClass
Description copied from interface:IClassObserverObserve a class being visited.- Parameters:
classDescriptor- class being visited
-
fileNameFor
-
printBug
Description copied from class:TextUIBugReporterPrint bug in one-line format.- Overrides:
printBugin classTextUIBugReporter- Parameters:
bugInstance- the bug to print
-
doReportBug
Description copied from class:AbstractBugReporterSubclasses must override this. It will be called only for bugs which meet the priority threshold.- Specified by:
doReportBugin classAbstractBugReporter- Parameters:
bugInstance- the bug to report
-
finish
public void finish()Description copied from interface:BugReporterFinish reporting bugs. If any bug reports have been queued, calling this method will flush them. -
getBugCollection
Description copied from interface:BugReporterGet the bug collection (if any) associated with this bug reporter
-