Sha256: 8385bd991a3c67b5259e14c3aa23838087b3fcf7e28bbc2da3c177530185260f
Contents?: true
Size: 578 Bytes
Versions: 28
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module SlimLint # Contains information about all lints detected during a scan. class Report # List of lints that were found. attr_accessor :lints # List of files that were linted. attr_reader :files # Creates a report. # # @param lints [Array<SlimLint::Lint>] lints that were found # @param files [Array<String>] files that were linted 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
28 entries across 28 versions & 2 rubygems