.rubocop.yml
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.7
DisplayCopNames: true
Exclude:
- .git/**/*
- spec/core/middleware/response/sanitize_response_spec.rb
- vendor/**/*
# Prevents Ruby 3.1 incompatibility error. You can enable this cop when Ruby 2.7 support is dropped.
# See https://github.com/rubocop/rubocop/issues/10258
Layout/BlockAlignment:
Enabled: false
# Align ends correctly.
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
# Align the elements of a hash literal if they span more than one line.
Layout/HashAlignment:
EnforcedLastArgumentHashStyle: ignore_implicit
# Align the parameters of a method call if they span more than one line.
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
# Checks the indentation of hanging closing parentheses.
Layout/ClosingParenthesisIndentation:
Enabled: false
# Checks the indentation of the first parameter in a method call.
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
# Checks indentation of method calls with the dot operator that span more than one line.
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# Checks indentation of binary operations that span more than one line.
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Metrics:
Enabled: false
Style/DoubleNegation:
Enabled: false