Package edu.umd.cs.findbugs.sarif
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 edu.umd.cs.findbugs.AbstractBugReporter
AbstractBugReporter.Error
-
Field Summary
FieldsFields inherited from class edu.umd.cs.findbugs.TextUIBugReporter
outputStream
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
Fields inherited from interface edu.umd.cs.findbugs.ba.Debug
VERIFY_INTEGRITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSupportedTaxonomies
(com.google.gson.stream.JsonWriter jsonWriter) void
finish()
Finish reporting bugs.private static String
getExitCodeDescription
(int exitCode) private void
processExtensions
(com.google.gson.stream.JsonWriter jsonWriter) private void
processInvocations
(com.google.gson.stream.JsonWriter jsonWriter, Map<URI, String> baseToId) private void
processRuns
(com.google.gson.stream.JsonWriter jsonWriter) private void
processTool
(com.google.gson.stream.JsonWriter jsonWriter, com.google.gson.JsonArray rules) Methods inherited from class edu.umd.cs.findbugs.BugCollectionBugReporter
doReportBug, emitLine, getBugCollection, getProject, getRealBugReporter, logError, logError, observeClass, reportMissingClass, reportMissingClass
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, getOutputTarget, getUseLongBugCodes, isApplySuppressions, isDuplicateOf, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setOutputTarget, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriter
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, notifyObservers, reportBug, reportBugsFromXml, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.umd.cs.findbugs.BugReporter
addObserver, getProjectStats, reportBug, setErrorVerbosity, setPriorityThreshold
Methods inherited from interface edu.umd.cs.findbugs.ConfigurableBugReporter
setRankThreshold
Methods inherited from interface edu.umd.cs.findbugs.classfile.IErrorLogger
reportSkippedAnalysis
-
Field Details
-
gson
private final com.google.gson.Gson gson
-
-
Constructor Details
-
SarifBugReporter
-
-
Method Details
-
finish
public void finish()Description copied from interface:BugReporter
Finish reporting bugs. If any bug reports have been queued, calling this method will flush them.- Specified by:
finish
in interfaceBugReporter
- Overrides:
finish
in 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
-