module Pluginscan Finding = Struct.new(:lineno, :line, :match, :ignored) class CheckFindings attr_reader :findings attr_reader :check def initialize(check) @check = check @findings = [] end def add(more_findings) @findings += more_findings end def any_findings? !findings.empty? end def all_ignored? @findings.all?(&:ignored) end def count findings.count end end end