Class BugCollectionAnalyser

java.lang.Object
edu.umd.cs.findbugs.sarif.BugCollectionAnalyser

class BugCollectionAnalyser extends Object
  • Field Details

    • rules

      private final @NonNull List<Rule> rules
    • results

      private final @NonNull List<Result> results
    • typeToIndex

      private final @NonNull Map<String,Integer> typeToIndex
    • indexToPlaceholders

      private final @NonNull List<List<Placeholder>> indexToPlaceholders
    • taxa

      private final @NonNull SortedSet<Taxon> taxa
    • baseToId

      private final @NonNull Map<URI,String> baseToId
      Map baseURI to uriBaseId. e.g. "/user/ubuntu/github/spotbugs/" -> "8736793520"
  • Constructor Details

    • BugCollectionAnalyser

      BugCollectionAnalyser(@NonNull BugCollection bugCollection)
  • Method Details

    • getRules

      com.google.gson.JsonArray getRules()
    • getResults

      com.google.gson.JsonArray getResults()
    • getCweTaxonomy

      com.google.gson.JsonObject getCweTaxonomy()
    • getOriginalUriBaseIds

      @NonNull com.google.gson.JsonObject getOriginalUriBaseIds()
    • createCweTaxonomyJson

      private com.google.gson.JsonObject createCweTaxonomyJson()
    • processResult

      private void processResult(int index, BugInstance bug, SourceFinder sourceFinder)
    • processRule

      private int processRule(BugPattern bugPattern)
    • processTaxon

      private void processTaxon(int cweid)
    • getBaseToId

      Map<URI,String> getBaseToId()