diff --git a/.rubocop.yml b/.rubocop.yml index 497d45e8..6500f653 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -95,7 +95,9 @@ Metrics/BlockNesting: Max: 4 Metrics/ClassLength: - Max: 575 + Max: 300 + 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 c088feef..b5e01a09 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -1,6 +1,3 @@ -# rubocop:disable Metrics/ClassLength -## -# This class represents a conference class Conference < ActiveRecord::Base require 'uri' serialize :events_per_week, Hash @@ -1081,4 +1078,3 @@ class Conference < ActiveRecord::Base result end end -# rubocop:enable Metrics/ClassLength