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
This commit is contained in:
Chaitanya 2017-05-11 16:32:44 +05:30 committed by Stella Rouzi
parent 53a2246ff2
commit 4b72d383ea

View file

@ -14,7 +14,7 @@ Bundler/OrderedGems:
Exclude: Exclude:
- 'Gemfile' - 'Gemfile'
# Offense count: 28 # Offense count: 29
Lint/AmbiguousBlockAssociation: Lint/AmbiguousBlockAssociation:
Exclude: Exclude:
- 'app/models/comment.rb' - 'app/models/comment.rb'
@ -28,6 +28,7 @@ Lint/AmbiguousBlockAssociation:
- 'spec/controllers/proposals_controller_spec.rb' - 'spec/controllers/proposals_controller_spec.rb'
- 'spec/controllers/schedules_controller_spec.rb' - 'spec/controllers/schedules_controller_spec.rb'
- 'spec/models/user_spec.rb' - 'spec/models/user_spec.rb'
- 'spec/controllers/admin/users_controller_spec.rb'
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
@ -80,10 +81,12 @@ Metrics/LineLength:
Metrics/MethodLength: Metrics/MethodLength:
Max: 56 Max: 56
# Offense count: 1 # Offense count: 2
# Configuration parameters: CountComments. # Configuration parameters: CountComments.
Metrics/ModuleLength: Metrics/ModuleLength:
Max: 472 Max: 472
Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 14 # Offense count: 14
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity: