Exclude event types from rubocop rule (#1657)

This commit is contained in:
helenye-stripe 2025-09-23 10:34:12 -07:00 committed by GitHub
parent 401626c2bf
commit 8a0ca5aae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,12 @@ Metrics/BlockLength:
Metrics/ClassLength:
Enabled: false
Metrics/CollectionLiteralLength:
Enabled: true
Exclude:
# We have thin event types that are automatically generated from the OpenAPI spec
- "lib/stripe/event_types.rb"
# There are several methods with many branches in api_requestor due to
# request logic.
Metrics/CyclomaticComplexity:
@ -209,8 +215,6 @@ Lint/UselessRescue: # new in 1.43
Enabled: true
Lint/UselessRuby2Keywords: # new in 1.23
Enabled: true
Metrics/CollectionLiteralLength: # new in 1.47
Enabled: true
Naming/BlockForwarding: # new in 1.24
Enabled: true
Security/CompoundHash: # new in 1.28