Sha256: fcf735c6a561ac8cddfe73541adce560dcc2221910db50c59e89749da32854af

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 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 languages
        super(Language::CSS)
      end

      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

      def parser(stdout, container)
        LintTrap::Parser::CSSLint.new(stdout, container)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lint_trap-0.0.15 lib/lint_trap/linter/csslint.rb
lint_trap-0.0.14 lib/lint_trap/linter/csslint.rb
lint_trap-0.0.13 lib/lint_trap/linter/csslint.rb