Sha256: ac3deb4bf1c73d5206134e24863eb46340dbc51f01bb320ccd9c34baf5053418

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to coffeelint command line tool.
    class CoffeeLint < Base
      REPORTER = 'coffeelint/lint_trap.coffee'

      def languages
        super(Language::CoffeeScript)
      end

      def version
        '1.9.7'
      end

    private

      def flags(container, options)
        [
          "--reporter=#{container.config_path(REPORTER)}",
          '--nocolor'
        ].tap do |flags|
          flags.concat(["--file=#{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/coffeelint.rb
lint_trap-0.0.14 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.13 lib/lint_trap/linter/coffeelint.rb