Class: Homebrew::Vulns::Scanner::Results Private
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Attribute Summary collapse
- #checked ⇒ Integer readonly private
- #findings ⇒ Array<Finding> readonly private
- #outdated_without_sbom ⇒ Array<String> readonly private
- #skipped_formulae ⇒ Array<String> readonly private
Instance Method Summary collapse
- #any_open? ⇒ Boolean private
- #initialize(findings:, checked:, skipped_formulae:, outdated_without_sbom: []) ⇒ void constructor private
- #skipped ⇒ Integer private
Constructor Details
#initialize(findings:, checked:, skipped_formulae:, outdated_without_sbom: []) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
72 73 74 75 76 77 |
# File 'vulns/scanner.rb', line 72 def initialize(findings:, checked:, skipped_formulae:, outdated_without_sbom: []) @findings = findings @checked = checked @skipped_formulae = skipped_formulae @outdated_without_sbom = outdated_without_sbom end |
Instance Attribute Details
#checked ⇒ Integer (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
62 63 64 |
# File 'vulns/scanner.rb', line 62 def checked @checked end |
#findings ⇒ Array<Finding> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
59 60 61 |
# File 'vulns/scanner.rb', line 59 def findings @findings end |
#outdated_without_sbom ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
65 66 67 |
# File 'vulns/scanner.rb', line 65 def outdated_without_sbom @outdated_without_sbom end |
#skipped_formulae ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
65 66 67 |
# File 'vulns/scanner.rb', line 65 def skipped_formulae @skipped_formulae end |
Instance Method Details
#any_open? ⇒ Boolean
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
85 86 87 |
# File 'vulns/scanner.rb', line 85 def any_open? findings.any? { |f| f.open.any? } end |
#skipped ⇒ Integer
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
80 81 82 |
# File 'vulns/scanner.rb', line 80 def skipped skipped_formulae.size end |