Sha256: e830f3f308900cfda80bdbbec80aa9bd7032e6f0a68167f049f254cc3966ee5b

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

require 'warder/coffee_lint_runner/message_line_formatter'

module Warder
  # responsible for run coffeescript style guide validation
  class CoffeeLintRunner
    # responsible for human readable result of coffeelint validation
    class MessageFormatter
      def initialize(result)
        @result = result
      end

      def format
        @result.map do |result|
          MessageLineFormatter.new(result).format
        end.join("\n")
      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/message_formatter.rb
warder-0.3.2 lib/warder/coffee_lint_runner/message_formatter.rb
warder-0.3.1 lib/warder/coffee_lint_runner/message_formatter.rb
warder-0.3.0 lib/warder/coffee_lint_runner/message_formatter.rb
warder-0.2.4 lib/warder/coffee_lint_runner/message_formatter.rb