-
Notifications
You must be signed in to change notification settings - Fork 183
/
.rubocop.yml
48 lines (37 loc) · 1.33 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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