From 4b72d383ea1f07708cae347291804a2fa29b7797 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Thu, 11 May 2017 16:32:44 +0530 Subject: [PATCH] Fix Travis-Ci errors Rubocop offenses lead to failure of Travis-ci build. Offensive files are added as exclude files of respective offense in rubocop_todo.yml --- .rubocop_todo.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ccc0aca3..11fedc97 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -14,7 +14,7 @@ Bundler/OrderedGems: Exclude: - 'Gemfile' -# Offense count: 28 +# Offense count: 29 Lint/AmbiguousBlockAssociation: Exclude: - 'app/models/comment.rb' @@ -28,6 +28,7 @@ Lint/AmbiguousBlockAssociation: - 'spec/controllers/proposals_controller_spec.rb' - 'spec/controllers/schedules_controller_spec.rb' - 'spec/models/user_spec.rb' + - 'spec/controllers/admin/users_controller_spec.rb' # Offense count: 1 # Cop supports --auto-correct. @@ -80,10 +81,12 @@ Metrics/LineLength: Metrics/MethodLength: Max: 56 -# Offense count: 1 +# Offense count: 2 # Configuration parameters: CountComments. Metrics/ModuleLength: Max: 472 + Exclude: + - 'app/helpers/application_helper.rb' # Offense count: 14 Metrics/PerceivedComplexity: