From d998c3342e6296e93295f3b8ba66118422f8b6d9 Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Wed, 29 May 2019 21:05:42 -0400 Subject: [PATCH] Only ignore line-length on resources --- .rubocop.yml | 2 +- lib/stripe/object_types.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6437bde8..9ed7e7fc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,7 +16,7 @@ Layout/IndentHash: Metrics/LineLength: Exclude: - "test/**/*.rb" - - "lib/stripe/**/*.rb" + - "lib/stripe/resources/**/*.rb" Metrics/MethodLength: # There's ~2 long methods in `StripeClient`. If we want to truncate those a diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 4bd09c79..906e59cf 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +# rubocop:disable Metrics/LineLength + module Stripe module ObjectTypes def self.object_names_to_classes # rubocop:disable Metrics/MethodLength @@ -88,3 +90,5 @@ module Stripe end end end + +# rubocop:enable Metrics/LineLength