lib/face_control/checkers/rubocop.rb in face_control-0.9.1 vs lib/face_control/checkers/rubocop.rb in face_control-1.0.0

- old
+ new

@@ -10,20 +10,22 @@ attr_writer :options def relevant_globs %w( *.gemspec - *.rb + *.jbuilder *.rake + *.rb + *.ru Capfile Gemfile Rakefile Vagrantfile ) end def command(filenames) - "rubocop --format json #{filenames}" + "rubocop --parallel --format json #{filenames}" end def parse(command_output) JSON.parse(command_output)['files'].map do |file| file['offenses'].reject do |offense|