Sha256: ff2691bed27702978e5f4be0cc99bee80eb6a9d1aca6b3b2ba0daef892157e32
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
# encoding: utf-8 module Phare class Check class Rubocop < Check def initialize(directory, options = {}) @path = directory @extensions = %w(.rb) @options = options end def command if tree_changed? "rubocop #{tree_changes.join(' ')}" else 'rubocop' end end protected def binary_exists? !Phare.system_output('which rubocop').empty? end def print_banner Phare.puts '----------------------------------------' Phare.puts 'Running Rubocop to check for Ruby style…' Phare.puts '----------------------------------------' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phare-0.5 | lib/phare/check/rubocop.rb |