diff --git a/.rubocop.yml b/.rubocop.yml index ad37bd18..2d1a607f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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/**/* diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0f64e2ae..05facdc8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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