Sha256: 7fd81b4364e3ba56db3c3d2f5c65586a7fa3044f276d15f5e987c9dd3f936d58

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 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'

    private

      def flags
        [
          "--reporter=#{config_path(REPORTER)}",
          '--nocolor'
        ].tap do |flags|
          flags.concat(["--file=#{options[:config]}"]) if options[:config]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lint_trap-0.0.8 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.7 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.6 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.5 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.4 lib/lint_trap/linter/coffeelint.rb
lint_trap-0.0.3 lib/lint_trap/linter/coffeelint.rb