Exclude event types from rubocop rule

This commit is contained in:
Helen Ye 2025-09-23 13:15:25 -04:00
parent 77b83c1364
commit 133bb11f61

View File

@ -41,6 +41,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