-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yaml
73 lines (55 loc) · 1.79 KB
/
.rubocop.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# This is the configuration used to check the rubocop source code.
# Read all default settings here:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# Read more details here:
# https://docs.rubocop.org/en/stable/
AllCops:
TargetRubyVersion: 2.3
Documentation:
Enabled: false
Metrics/LineLength:
Max: 100
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/DefEndAlignment:
EnforcedStyleAlignWith: def
AutoCorrect: true
Style/BracesAroundHashParameters:
EnforcedStyle: no_braces
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/TrailingWhitespace:
AllowInHeredoc: true
# Disable OrAssignment allow to use unless/if-else,
# not forced transfer into ||= and ? : (ternary operator)
Style/OrAssignment:
Enabled: false
# Disable SafeNavigation allow to use if/unless clause,
# not forced transfer into &. etc.
Style/SafeNavigation:
Enabled: false
# Disable ExpandPathArguments allow to use
# expand_path('../lib', __FILE__)
# and would not forced transfer into
# expand_path(__dir__) which may not compatible in some ruby version
Style/ExpandPathArguments:
Enabled: false
# Disable RescueStandardError allow not leave blank
# instead of forced rescue StandardError
Style/RescueStandardError:
Enabled: false
# Disable reformat the if/unless clause into one line
# if enabled set true, rubocop will try to transfer if/unless clause into on-line format
Style/IfUnlessModifier:
Enabled: false