Skip to content

Commit

Permalink
Only ignore line-length on resources
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex-stripe committed May 30, 2019
1 parent 64571be commit d998c33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -88,3 +90,5 @@ def self.object_names_to_classes # rubocop:disable Metrics/MethodLength
end
end
end

# rubocop:enable Metrics/LineLength

0 comments on commit d998c33

Please sign in to comment.