Only ignore line-length on resources

This commit is contained in:
Alex Rattray 2019-05-29 21:05:42 -04:00
parent 64571bee75
commit d998c3342e
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Layout/IndentHash:
Metrics/LineLength: Metrics/LineLength:
Exclude: Exclude:
- "test/**/*.rb" - "test/**/*.rb"
- "lib/stripe/**/*.rb" - "lib/stripe/resources/**/*.rb"
Metrics/MethodLength: Metrics/MethodLength:
# There's ~2 long methods in `StripeClient`. If we want to truncate those a # There's ~2 long methods in `StripeClient`. If we want to truncate those a

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
# rubocop:disable Metrics/LineLength
module Stripe module Stripe
module ObjectTypes module ObjectTypes
def self.object_names_to_classes # rubocop:disable Metrics/MethodLength def self.object_names_to_classes # rubocop:disable Metrics/MethodLength
@ -88,3 +90,5 @@ module Stripe
end end
end end
end end
# rubocop:enable Metrics/LineLength