From 8a0ca5aae10294b2ca6826a7cd4999319dfca878 Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Tue, 23 Sep 2025 10:34:12 -0700 Subject: [PATCH] Exclude event types from rubocop rule (#1657) --- .rubocop.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 60098a64..e4f7027c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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