mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 12:39:34 +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
|
RunRailsCops: true
|
||||||
|
|
||||||
Exclude:
|
Exclude:
|
||||||
|
- 'Guardfile'
|
||||||
|
# stuff generated by AR and rails
|
||||||
- 'db/schema.rb'
|
- 'db/schema.rb'
|
||||||
- 'db/migrate/*'
|
- '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:
|
Metrics/LineLength:
|
||||||
Max: 120
|
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' }
|
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Disabled rubocop in guard until old offenses are removed to reduce visual clutter
|
guard :rubocop do
|
||||||
# guard :rubocop do
|
watch(%r{.+\.rb$})
|
||||||
# watch(%r{.+\.rb$})
|
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||||
# watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
end
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue