mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-03 00:01:21 -04:00
* Bump Rubocop to 0.57.2 * Style/StderrPuts: Use warn instead of .puts * Style/ExpandPathArguments: Use expand_path('../test_helper', __dir__) instead of expand_path('../../test_helper', __FILE__) * Style/Encoding: Unnecessary utf-8 encoding comment * Style/StringLiterals: Prefer double-quoted strings * Style/AccessModifierDeclarations * Style/FormatStringToken: Prefer annotated tokens * Naming/UncommunicativeMethodParamName * Metrics/LineLength: set maximum line length to 100 characters * Style/IfUnlessModifier: Favor modifier if usage when having a single-line body * Style/ClassVars * Metrics/LineLength: set maximum line length to 80 characters (default) * Style/AccessModifierDeclarations: EnforcedStyle: inline
43 lines
875 B
YAML
43 lines
875 B
YAML
inherit_from: .rubocop_todo.yml
|
|
|
|
AllCops:
|
|
DisplayCopNames: true
|
|
TargetRubyVersion: 2.1
|
|
|
|
Layout/CaseIndentation:
|
|
EnforcedStyle: end
|
|
|
|
Layout/IndentArray:
|
|
EnforcedStyle: consistent
|
|
|
|
Layout/IndentHash:
|
|
EnforcedStyle: consistent
|
|
|
|
Metrics/LineLength:
|
|
Exclude:
|
|
- "test/**/*.rb"
|
|
|
|
Metrics/MethodLength:
|
|
# There's ~2 long methods in `StripeClient`. If we want to truncate those a
|
|
# little, we could move this to be closer to ~30 (but the default of 10 is
|
|
# probably too short).
|
|
Max: 50
|
|
|
|
Metrics/ModuleLength:
|
|
Enabled: false
|
|
|
|
Style/AccessModifierDeclarations:
|
|
EnforcedStyle: inline
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
EnforcedStyle: always
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
EnforcedStyleForMultiline: consistent_comma
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
EnforcedStyleForMultiline: consistent_comma
|