Sha256: 9b96162e6032f39a5cff3d7e600a471c82bba4baa070b4b10ab214aadfde9561

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 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 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

4 entries across 4 versions & 1 rubygems

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