class CC::Analyzer::Formatters::HTMLFormatter::IssueCollection

Attributes

collection[R]
filesystem[R]

Public Class Methods

new(filesystem) click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 315
def initialize(filesystem)
  @collection = []
  @filesystem = filesystem
end

Public Instance Methods

<<(issue) click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 324
def <<(issue)
  if issue.is_a? Hash
    issue = Issue.new(issue, filesystem)
  end
  collection.push(issue)
end
any?() click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 331
def any?
  collection.any?
end
categories() click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 341
def categories
  collection.flat_map(&:categories).uniq.sort
end
each(&block) click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 320
def each(&block)
  collection.each(&block)
end
engines() click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 345
def engines
  collection.map(&:engine_name).uniq.compact.sort
end
syntaxes() click to toggle source
# File lib/cc/analyzer/formatters/html_formatter.rb, line 335
def syntaxes
  collection.flat_map do |issue|
    issue.source.syntaxes
  end.uniq.sort
end