Class SarifBugReporter

All Implemented Interfaces:
Debug, RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger, ConfigurableBugReporter

public class SarifBugReporter extends BugCollectionBugReporter
  • Field Details

    • gson

      private final com.google.gson.Gson gson
  • Constructor Details

    • SarifBugReporter

      public SarifBugReporter(Project project)
  • 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 interface BugReporter
      Overrides:
      finish in class BugCollectionBugReporter
    • processRuns

      private void processRuns(@NonNull com.google.gson.stream.JsonWriter jsonWriter) throws IOException
      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

      private static String getExitCodeDescription(int exitCode)