Skip to content

Commit 8a0ca5a

Browse files
Exclude event types from rubocop rule (stripe#1657)
1 parent 401626c commit 8a0ca5a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.rubocop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Metrics/BlockLength:
4040
Metrics/ClassLength:
4141
Enabled: false
4242

43+
Metrics/CollectionLiteralLength:
44+
Enabled: true
45+
Exclude:
46+
# We have thin event types that are automatically generated from the OpenAPI spec
47+
- "lib/stripe/event_types.rb"
48+
4349
# There are several methods with many branches in api_requestor due to
4450
# request logic.
4551
Metrics/CyclomaticComplexity:
@@ -209,8 +215,6 @@ Lint/UselessRescue: # new in 1.43
209215
Enabled: true
210216
Lint/UselessRuby2Keywords: # new in 1.23
211217
Enabled: true
212-
Metrics/CollectionLiteralLength: # new in 1.47
213-
Enabled: true
214218
Naming/BlockForwarding: # new in 1.24
215219
Enabled: true
216220
Security/CompoundHash: # new in 1.28

0 commit comments

Comments
 (0)