-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.yml
104 lines (104 loc) · 2.3 KB
/
default.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
101
102
103
104
AllCops:
DisplayCopNames: true
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: false
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
Layout/IndentArray:
EnforcedStyle: consistent
Layout/IndentHash:
EnforcedStyle: consistent
Layout/MultilineAssignmentLayout:
Enabled: true
EnforcedStyle: same_line
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Lint/Loop:
Enabled: false
Metrics/AbcSize:
Max: 50
Metrics/BlockLength:
Max: 300
Metrics/ClassLength:
Max: 300
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 300
Metrics/ParameterLists:
CountKeywordArgs: false
Naming/AccessorMethodName:
Enabled: false
Style/AndOr:
EnforcedStyle: conditionals
Style/AsciiComments:
Enabled: false
Style/AutoResourceCleanup:
Enabled: true
Style/BracesAroundHashParameters:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/CollectionMethods:
Enabled: true
PreferredMethods:
collect: 'map'
collect!: 'map!'
find: 'detect'
find_all: 'select'
inject: 'reduce'
Style/Documentation:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiterals:
Strict: true
Style/OptionHash:
Enabled: true
Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: ()
'%i': '[]'
'%I': '[]'
'%r': '()'
'%w': '[]'
'%W': '[]'
'%x': '()'
Style/Send:
Enabled: true
Style/StringMethods:
Enabled: true
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/VariableInterpolation:
Enabled: false