Skip to content

Commit

Permalink
Skip running rubocop on everything on start
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpaulashenfelter committed Sep 11, 2019
1 parent e688b72 commit fa4e10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ guard :rspec, cmd: 'DISABLE_SPRING=y NOCOVERAGE=y bin/rspec' do
watch(dsl.rails.app_controller) { "#{rspec.spec_dir}/controllers" }
end

guard :rubocop, cli: %w[--auto-correct] do
guard :rubocop, all_on_start: false, cli: %w[--auto-correct] do
watch(/.+\.rb$/)
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

0 comments on commit fa4e10f

Please sign in to comment.