Skip to content

Commit

Permalink
silence rubocop and show which offense was triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Mar 8, 2017
1 parent 1fc3b05 commit 5ffa679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 1.9
DisplayCopNames: true
Exclude:
- .git/**/*
- spec/core/middleware/response/sanitize_response_spec.rb
- vendor/**/*

# Align ends correctly.
Lint/EndAlignment:
Expand Down Expand Up @@ -33,3 +35,6 @@ Style/MultilineMethodCallIndentation:
# Checks indentation of binary operations that span more than one line.
Style/MultilineOperationIndentation:
EnforcedStyle: indented

Metrics:
Enabled: false
33 changes: 0 additions & 33 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,39 +65,6 @@ Lint/Void:
Exclude:
- 'lib/zendesk_api/middleware/request/encode_json.rb'

# Offense count: 27
Metrics/AbcSize:
Max: 68

# Offense count: 3
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 309

# Offense count: 19
Metrics/CyclomaticComplexity:
Max: 12

# Offense count: 425
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 158

# Offense count: 37
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 52

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 140

# Offense count: 16
Metrics/PerceivedComplexity:
Max: 14

# Offense count: 1
# Cop supports --auto-correct.
Performance/RedundantBlockCall:
Expand Down

0 comments on commit 5ffa679

Please sign in to comment.