-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
100 lines (84 loc) · 2.03 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# For reference: https://github.com/bbatsov/rubocop/blob/master/config/default.yml
#
Documentation:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
SupportedStyles:
- leading
- trailing
Layout/IndentationConsistency:
EnforcedStyle: rails
SupportedStyles:
- normal
- rails
Style/StringLiterals:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
- double_quotes
# If `true`, strings which span multiple lines using `\` for continuation must
# use the same type of quotes on each line.
ConsistentQuotesInMultiline: true
Enabled: false
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes
Style/TrailingCommaInLiteral:
# If `comma`, the cop requires a comma after the last item in an array or
# hash, but only when each item is on its own line.
# If `consistent_comma`, the cop requires a comma after the last item of all
# non-empty array and hash literals.
EnforcedStyleForMultiline: consistent_comma
SupportedStylesForMultiline:
- comma
- consistent_comma
- no_comma
Style/EmptyLiteral:
Enabled: false
Style/ConditionalAssignment:
EnforcedStyle: assign_inside_condition
SupportedStyles:
- assign_to_condition
- assign_inside_condition
Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: ()
'%i': '()'
'%I': '[]'
'%r': '{}'
'%w': '[]'
'%W': '[]'
Style/ClassAndModuleChildren:
EnforcedStyle: nested
SupportedStyles:
- nested
- compact
Enabled: false
Metrics/LineLength:
Max: 128
Metrics/MethodLength:
CountComments: false
Max: 100
Enabled: false
Metrics/ClassLength:
CountComments: false
Max: 100
Enabled: false
Metrics/ModuleLength:
CountComments: false
Max: 100
Enabled: false
Metrics/BlockLength:
CountComments: false
Max: 25
ExcludedMethods: []
Enabled: false
Metrics/AbcSize:
# The ABC size is a calculated magnitude, so this number can be an Integer or
# a Float.
Max: 15
Enabled: false