-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
44 lines (32 loc) · 1016 Bytes
/
.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
AllCops:
#TargetRubyVersion: 2.0 # at least 2.0. RMVX use ruby-1.8.1, which is not supported here
DisabledByDefault: true # Lint/Syntax is always enabled
Layout/IndentationWidth:
Enabled: true
#AutoCorrect: true
Width: 4
AllowedPatterns: []
Layout/IndentationConsistency:
Enabled: true
#AutoCorrect: true
EnforcedStyle: normal
Layout/CommentIndentation:
Enabled: true
#AutoCorrect: true
AllowForAlignment: true
#Layout/ClosingParenthesisIndentation:
# Enabled: true
Layout/SpaceAfterComma:
Enabled: true
#Layout/SpaceAfterMethodName:
# Enabled: true
# 这个认为函数定义处没有小括号才是好的,不可设置。
#Style/DefWithParentheses
#Style/EmptyLambdaParameter
Style/MethodCallWithArgsParentheses:
Enabled: true
AllowParenthesesInMultilineCall: true
AllowParenthesesInChaining: true
AllowParenthesesInCamelCaseMethod: true
AllowParenthesesInStringInterpolation: true
EnforcedStyle: require_parentheses