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.Gsongson-
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 voidaddSupportedTaxonomies(com.google.gson.stream.JsonWriter jsonWriter)voidfinish()Finish reporting bugs.private static java.lang.StringgetExitCodeDescription(int exitCode)private voidprocessExtensions(com.google.gson.stream.JsonWriter jsonWriter)private voidprocessInvocations(com.google.gson.stream.JsonWriter jsonWriter, java.util.Map<java.net.URI,java.lang.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 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, getPriorityAdjuster, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, notifyObservers, reportBug, reportBugsFromXml, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityAdjuster, 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, getPriorityAdjuster, getProjectStats, reportBug, setErrorVerbosity, setPriorityAdjuster, setPriorityThreshold
-
Methods inherited from interface edu.umd.cs.findbugs.ConfigurableBugReporter
setRankThreshold
-
Methods inherited from interface edu.umd.cs.findbugs.classfile.IErrorLogger
reportMissingClass, reportSkippedAnalysis
-
-
-
-
Constructor Detail
-
SarifBugReporter
public SarifBugReporter(Project project)
-
-
Method Detail
-
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
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)
-
-