Sha256: bbcf9ab5d296eb483b5ab8e6bc423930540ea6b19230a025eff2326129a0552c

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

require 'coffeelint'

module Warder
  # responsible for run coffeescript style guide validation
  class CoffeeLintRunner
    # responsible for coffeelint results
    class LintRunner
      def initialize(file_or_path)
        @file_or_path = file_or_path
      end

      def result
        if Dir.exist?(@file_or_path)
          Coffeelint.lint_dir(@file_or_path)
        else
          { @file_or_path => Coffeelint.lint_file(@file_or_path) }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
warder-0.3.4 lib/warder/coffee_lint_runner/lint_runner.rb
warder-0.3.2 lib/warder/coffee_lint_runner/lint_runner.rb
warder-0.3.1 lib/warder/coffee_lint_runner/lint_runner.rb
warder-0.3.0 lib/warder/coffee_lint_runner/lint_runner.rb
warder-0.2.4 lib/warder/coffee_lint_runner/lint_runner.rb