Class SarifBugReporter
java.lang.Object
edu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
edu.umd.cs.findbugs.BugCollectionBugReporter
edu.umd.cs.findbugs.sarif.SarifBugReporter
- All Implemented Interfaces:
Debug, RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger, ConfigurableBugReporter
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractBugReporter
AbstractBugReporter.Error -
Field Summary
FieldsFields inherited from class TextUIBugReporter
outputStreamFields inherited from interface BugReporter
NORMAL, SILENTFields inherited from interface Debug
VERIFY_INTEGRITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddSupportedTaxonomies(com.google.gson.stream.JsonWriter jsonWriter) voidfinish()Finish reporting bugs.private static StringgetExitCodeDescription(int exitCode) private voidprocessExtensions(com.google.gson.stream.JsonWriter jsonWriter) private voidprocessInvocations(com.google.gson.stream.JsonWriter jsonWriter, Map<URI, String> baseToId) private voidprocessRuns(com.google.gson.stream.JsonWriter jsonWriter) private voidprocessTool(com.google.gson.stream.JsonWriter jsonWriter, com.google.gson.JsonArray rules) Methods inherited from class BugCollectionBugReporter
doReportBug, emitLine, getBugCollection, getProject, getRealBugReporter, logError, logError, observeClass, reportMissingClass, reportMissingClassMethods inherited from class TextUIBugReporter
checkBugInstance, getOutputTarget, getUseLongBugCodes, isApplySuppressions, isDuplicateOf, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setOutputTarget, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriterMethods inherited from class AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getPriorityAdjuster, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, notifyObservers, reportBug, reportBugsFromXml, 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
reportMissingClass, reportSkippedAnalysis
-
Field Details
-
gson
private final com.google.gson.Gson gson
-
-
Constructor Details
-
SarifBugReporter
-
-
Method Details
-
finish
public void finish()Description copied from interface:BugReporterFinish reporting bugs. If any bug reports have been queued, calling this method will flush them.- Specified by:
finishin interfaceBugReporter- Overrides:
finishin classBugCollectionBugReporter
-
processRuns
- Throws:
IOException
-
processInvocations
private void processInvocations(com.google.gson.stream.JsonWriter jsonWriter, @NonNull Map<URI, String> baseToId) throws IOException- Throws:
IOException
-
processTool
private void processTool(@NonNull com.google.gson.stream.JsonWriter jsonWriter, @NonNull com.google.gson.JsonArray rules) throws IOException - Throws:
IOException
-
processExtensions
private void processExtensions(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws IOException - Throws:
IOException
-
addSupportedTaxonomies
private void addSupportedTaxonomies(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws IOException - Throws:
IOException
-
getExitCodeDescription
-