mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Tweaked rubocop and guard
This commit is contained in:
parent
678fd29c09
commit
1218288a85
2 changed files with 11 additions and 5 deletions
|
@ -2,8 +2,15 @@ AllCops:
|
|||
RunRailsCops: true
|
||||
|
||||
Exclude:
|
||||
- 'Guardfile'
|
||||
# stuff generated by AR and rails
|
||||
- 'db/schema.rb'
|
||||
- 'db/migrate/*'
|
||||
# spring generated stuff
|
||||
- 'bin/*'
|
||||
# epp support files until 'complexity issues' will be solved
|
||||
- 'spec/support/epp.rb'
|
||||
- 'spec/support/epp_contact_xml_builder.rb'
|
||||
|
||||
Metrics/LineLength:
|
||||
Max: 120
|
||||
|
|
|
@ -24,9 +24,8 @@ group :red_green_refactor, halt_on_fail:true do
|
|||
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
||||
end
|
||||
|
||||
# Disabled rubocop in guard until old offenses are removed to reduce visual clutter
|
||||
# guard :rubocop do
|
||||
# watch(%r{.+\.rb$})
|
||||
# watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||
# end
|
||||
guard :rubocop do
|
||||
watch(%r{.+\.rb$})
|
||||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue