Exclude migration file from Metrics/AbcSize check

This commit is contained in:
Paul Padier 2016-03-31 17:53:02 +09:00
parent 38c4193b4a
commit bd98129a5b
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,12 @@ AllCops:
Exclude:
- test/dummy/db/schema.rb
# Migrations often contain long up/down methods, and extracting smaller methods
# from these is of questionable value.
Metrics/AbcSize:
Exclude:
- 'test/dummy/db/migrate/*'
Metrics/ClassLength:
Exclude:
- test/**/*

View File

@ -3,8 +3,6 @@
# Offense count: 19
Metrics/AbcSize:
Exclude:
- 'test/dummy/db/migrate/20110208155312_set_up_test_tables.rb'
Max: 46 # Goal: 15
# Offense count: 6