Sha256: f21642a32333b56e5097784ce2753fa0a96cc8faf5355e92bf3830190d797489

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module SlimLint
  # Contains information about all lints detected during a scan.
  class Report
    attr_accessor :lints
    attr_reader :files

    def initialize(lints, files)
      @lints = lints.sort_by { |l| [l.filename, l.line] }
      @files = files
    end

    def failed?
      @lints.any?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slim_lint-0.2.0 lib/slim_lint/report.rb
slim_lint-0.1.0 lib/slim_lint/report.rb