From bd98129a5bd833fcb7f0844d0e7ae74ce9336599 Mon Sep 17 00:00:00 2001 From: Paul Padier Date: Thu, 31 Mar 2016 17:53:02 +0900 Subject: [PATCH] Exclude migration file from Metrics/AbcSize check --- .rubocop.yml | 6 ++++++ .rubocop_todo.yml | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) 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