Sha256: e4aa3a51830dabdc3f7851a430c93e6aff7026798f14ef248dda06894e087dd2

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Warder
  # responsible for run style guide validation
  class StyleGuideRunner < Runner
    def initialize(options = {})
      @options = options
    end

    private

    def command
      'rubocop'
    end

    def failed?(line)
      match = line.match(/(\d+|no) offence/)

      match && match[1].to_i != 0
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
warder-0.0.5 lib/warder/style_guide_runner.rb
warder-0.0.4 lib/warder/style_guide_runner.rb