class
Shards::VulnerabilityReport
- Shards::VulnerabilityReport
- Reference
- Object
Defined in:
vulnerability_report.crConstructors
Instance Method Summary
-
#exit_code : Int32
Returns appropriate exit code.
- #fail_above : Severity | Nil
-
#filtered_results : Array(PackageScanResult)
Returns filtered results (after applying ignore rules and severity filter).
- #ignore_rules : Array(IgnoreRule)
- #min_severity : Severity
- #results : Array(PackageScanResult)
- #to_json(io : IO)
- #to_sarif(io : IO)
- #to_terminal(io : IO = STDOUT)
-
#vulnerability_count : Int32
Total vulnerability count after filtering.
Constructor Detail
def self.new(results : Array(Shards::PackageScanResult), ignore_rules : Array(Shards::IgnoreRule) = [] of IgnoreRule, min_severity : Shards::Severity = Severity::Unknown, fail_above : Severity | Nil = nil)
#
Instance Method Detail
def exit_code : Int32
#
Returns appropriate exit code. 0 = no vulnerabilities above threshold 1 = vulnerabilities found above threshold
def filtered_results : Array(PackageScanResult)
#
Returns filtered results (after applying ignore rules and severity filter).