Tweaked rubocop and guard

This commit is contained in:
Andres Keskküla 2014-08-28 14:04:57 +03:00
parent 678fd29c09
commit 1218288a85
2 changed files with 11 additions and 5 deletions

View file

@ -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

View file

@ -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