class SlimLint::Report

Contains information about all lints detected during a scan.

Attributes

files[R]

List of files that were linted.

lints[RW]

List of lints that were found.

Public Class Methods

new(lints, files) click to toggle source

Creates a report.

@param lints [Array<SlimLint::Lint>] lints that were found @param files [Array<String>] files that were linted

# File lib/slim_lint/report.rb, line 16
def initialize(lints, files)
  @lints = lints.sort_by { |l| [l.filename, l.line] }
  @files = files
end

Public Instance Methods

failed?() click to toggle source
# File lib/slim_lint/report.rb, line 21
def failed?
  @lints.any?
end