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
public class SarifBugReporter extends BugCollectionBugReporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.AbstractBugReporter
AbstractBugReporter.Error
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.gson.Gson
gson
-
Fields 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 Constructor Description SarifBugReporter(Project project)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addSupportedTaxonomies(com.google.gson.stream.JsonWriter jsonWriter)
void
finish()
Finish reporting bugs.private static java.lang.String
getExitCodeDescription(int exitCode)
private void
processExtensions(com.google.gson.stream.JsonWriter jsonWriter)
private void
processInvocations(com.google.gson.stream.JsonWriter jsonWriter, java.util.Map<java.net.URI,java.lang.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, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, 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
-
-
-
-
Constructor Detail
-
SarifBugReporter
public SarifBugReporter(Project project)
-
-
Method Detail
-
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
private void processRuns(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
processInvocations
private void processInvocations(com.google.gson.stream.JsonWriter jsonWriter, @NonNull java.util.Map<java.net.URI,java.lang.String> baseToId) throws java.io.IOException
- Throws:
java.io.IOException
-
processTool
private void processTool(@NonNull com.google.gson.stream.JsonWriter jsonWriter, @NonNull com.google.gson.JsonArray rules) throws java.io.IOException
- Throws:
java.io.IOException
-
processExtensions
private void processExtensions(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
addSupportedTaxonomies
private void addSupportedTaxonomies(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
getExitCodeDescription
private static java.lang.String getExitCodeDescription(int exitCode)
-
-