Interface AnalysisBuildResult

All Known Subinterfaces:
StaticAnalysisRun
All Known Implementing Classes:
AnalysisResult, CompositeBuildResult

public interface AnalysisBuildResult
Provides statistics for the results of a static analysis run.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of fixed issues in this analysis run.
    int
    Returns the number of new issues in this analysis run.
    int
    getNewSizeOf(edu.hm.hafner.analysis.Severity severity)
    Returns the new number of issues in this analysis run that have the specified Severity.
    Returns the number of issues in this analysis run, mapped by their origin.
    Returns the total number of issues (by severity, new, total, fixed and delta) in a build.
    int
    Returns the total number of issues in this analysis run.
    int
    getTotalSizeOf(edu.hm.hafner.analysis.Severity severity)
    Returns the total number of issues in this analysis run that have the specified Severity.
  • Method Details

    • getSizePerOrigin

      Map<String,Integer> getSizePerOrigin()
      Returns the number of issues in this analysis run, mapped by their origin. The origin is the tool that created the report.
      Returns:
      number of issues per origin
    • getFixedSize

      int getFixedSize()
      Returns the number of fixed issues in this analysis run.
      Returns:
      number of fixed issues
    • getTotalSize

      int getTotalSize()
      Returns the total number of issues in this analysis run.
      Returns:
      total number of issues
    • getTotalSizeOf

      int getTotalSizeOf(edu.hm.hafner.analysis.Severity severity)
      Returns the total number of issues in this analysis run that have the specified Severity.
      Parameters:
      severity - the severity of the issues to match
      Returns:
      total number of issues
    • getNewSize

      int getNewSize()
      Returns the number of new issues in this analysis run.
      Returns:
      number of new issues
    • getNewSizeOf

      int getNewSizeOf(edu.hm.hafner.analysis.Severity severity)
      Returns the new number of issues in this analysis run that have the specified Severity.
      Parameters:
      severity - the severity of the issues to match
      Returns:
      total number of issues
    • getTotals

      IssuesStatistics getTotals()
      Returns the total number of issues (by severity, new, total, fixed and delta) in a build.
      Returns:
      the totals