Sha256: 11f6d40ece169d4edd7478cfd46bf12bd4ae770de5a45fb8cde2876c6295408b

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

require_relative 'base'

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

      def languages
        super(Language::SCSS)
      end

      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

3 entries across 3 versions & 1 rubygems

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