Sha256: d86317ee55f40a68df819d8541ca0c757c3765c48c680611412734a3bacc4f9e

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

require_relative 'base'
require_relative '../parser/csslint'

module LintTrap
  module Linter
    # Encapsulates logic specific to csslint command line tool.
    class CSSLint < Base
      def version
        '0.10.0'
      end

    private

      def flags(_container, options)
        [
          '--format=compact'
        ].tap do |flags|
          flags.concat(["--config=#{options[:config]}"]) if options[:config]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lint_trap-0.0.19 lib/lint_trap/linter/csslint.rb
lint_trap-0.0.18 lib/lint_trap/linter/csslint.rb
lint_trap-0.0.17 lib/lint_trap/linter/csslint.rb
lint_trap-0.0.16 lib/lint_trap/linter/csslint.rb