Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -63,6 +69,7 @@ Metrics/MethodLength:
- "lib/stripe/api_requestor.rb"
AllowedMethods:
- initialize
- inner_class_types

# TODO(xavdid): remove this once the first `basil` release is out
Naming/MethodName:
Expand Down Expand Up @@ -208,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
Expand Down
Loading