mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-05 00:02:50 -04:00
Removes Rubocop TODO around guard clauses and fixes the outstanding offenses. This is starting to get into territory that feels of more dubious value to me, but at least it did get me writing a couple more tests, so let's see how it goes by keeping this on.
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2017-09-27 21:19:01 +0200 using RuboCop version 0.50.0.
|
|
# The point is for the user to remove these configuration records
|
|
# one by one as the offenses are removed from the code base.
|
|
# Note that changes in the inspected code, or installation of new
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
# Offense count: 18
|
|
Metrics/AbcSize:
|
|
Max: 49
|
|
|
|
# Offense count: 22
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/BlockLength:
|
|
Max: 461
|
|
|
|
# Offense count: 8
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 581
|
|
|
|
# Offense count: 8
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 13
|
|
|
|
# Offense count: 216
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 312
|
|
|
|
# Offense count: 29
|
|
# Configuration parameters: CountComments.
|
|
Metrics/MethodLength:
|
|
Max: 47
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 290
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: CountKeywordArgs.
|
|
Metrics/ParameterLists:
|
|
Max: 7
|
|
|
|
# Offense count: 5
|
|
Metrics/PerceivedComplexity:
|
|
Max: 11
|
|
Exclude:
|
|
- 'lib/stripe/stripe_object.rb'
|
|
|
|
# Offense count: 1
|
|
Security/MarshalLoad:
|
|
Exclude:
|
|
- 'lib/stripe/stripe_object.rb'
|
|
|
|
# Offense count: 2
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'lib/stripe/stripe_object.rb'
|
|
- 'test/stripe/api_resource_test.rb'
|
|
|
|
# Offense count: 51
|
|
Style/Documentation:
|
|
Enabled: false
|