Skip to content

Commit 5ffa679

Browse files
committed
silence rubocop and show which offense was triggered
1 parent 1fc3b05 commit 5ffa679

File tree

2 files changed

+5
-33
lines changed

2 files changed

+5
-33
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ inherit_from: .rubocop_todo.yml
22

33
AllCops:
44
TargetRubyVersion: 1.9
5+
DisplayCopNames: true
56
Exclude:
67
- .git/**/*
78
- spec/core/middleware/response/sanitize_response_spec.rb
9+
- vendor/**/*
810

911
# Align ends correctly.
1012
Lint/EndAlignment:
@@ -33,3 +35,6 @@ Style/MultilineMethodCallIndentation:
3335
# Checks indentation of binary operations that span more than one line.
3436
Style/MultilineOperationIndentation:
3537
EnforcedStyle: indented
38+
39+
Metrics:
40+
Enabled: false

.rubocop_todo.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -65,39 +65,6 @@ Lint/Void:
6565
Exclude:
6666
- 'lib/zendesk_api/middleware/request/encode_json.rb'
6767

68-
# Offense count: 27
69-
Metrics/AbcSize:
70-
Max: 68
71-
72-
# Offense count: 3
73-
# Configuration parameters: CountComments.
74-
Metrics/ClassLength:
75-
Max: 309
76-
77-
# Offense count: 19
78-
Metrics/CyclomaticComplexity:
79-
Max: 12
80-
81-
# Offense count: 425
82-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
83-
# URISchemes: http, https
84-
Metrics/LineLength:
85-
Max: 158
86-
87-
# Offense count: 37
88-
# Configuration parameters: CountComments.
89-
Metrics/MethodLength:
90-
Max: 52
91-
92-
# Offense count: 1
93-
# Configuration parameters: CountComments.
94-
Metrics/ModuleLength:
95-
Max: 140
96-
97-
# Offense count: 16
98-
Metrics/PerceivedComplexity:
99-
Max: 14
100-
10168
# Offense count: 1
10269
# Cop supports --auto-correct.
10370
Performance/RedundantBlockCall:

0 commit comments

Comments
 (0)