From e0d5b461b37fc399c2ec3eb4a793e8c8a32d280e Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Sun, 20 Nov 2016 14:21:01 +0530 Subject: [PATCH] rubocop: annotate exceptions --- .rubocop.yml | 2 -- app/models/conference.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index b7c4b92e..7da4d8d5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -96,8 +96,6 @@ Metrics/BlockNesting: Metrics/ClassLength: Max: 575 - Exclude: - - 'app/models/conference.rb' # avoid redundunt curly braces when it is obvious that hash is used Style/BracesAroundHashParameters: diff --git a/app/models/conference.rb b/app/models/conference.rb index 801ea040..31c61d73 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -1,3 +1,4 @@ +# rubocop:disable Metrics/ClassLength ## # This class represents a conference class Conference < ActiveRecord::Base @@ -1063,3 +1064,4 @@ class Conference < ActiveRecord::Base result end end +# rubocop:enable Metrics/ClassLength