Sha256: f43d449476a47070195181ac6c97e6316db2273d4523af252cb10a36850f1857

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to scsslint command line tool.
    class SCSSLint < Base
      COMMAND = 'scsslint/scsslint'

      def version
        '0.38.0'
      end

      def command_name(container)
        container.config_path(COMMAND)
      end

      def flags(_container, options)
        [
          '--format=LintTrap'
        ].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/scsslint.rb
lint_trap-0.0.18 lib/lint_trap/linter/scsslint.rb
lint_trap-0.0.17 lib/lint_trap/linter/scsslint.rb
lint_trap-0.0.16 lib/lint_trap/linter/scsslint.rb