-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.rubocop.yml
110 lines (76 loc) · 1.65 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
101
102
103
104
105
106
107
108
109
110
AllCops:
DisabledByDefault: true
Exclude:
- "vendor/**/*"
Layout/EndOfLine:
Enabled: true
Layout/ExtraSpacing:
Enabled: true
Layout/IndentationWidth:
Enabled: true
Layout/LineLength:
Enabled: false
Layout/SpaceAfterComma:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyle: no_space
Layout/TrailingEmptyLines:
Enabled: true
Metrics/BlockLength:
Enabled: false
Naming/FileName:
Enabled: true
Style/CollectionMethods:
Enabled: true
Style/CommandLiteral:
Enabled: true
Style/CommentAnnotation:
Enabled: true
Style/ConditionalAssignment:
Enabled: true
Style/EmptyElse:
Enabled: true
Style/Encoding:
Enabled: true
Style/HashSyntax:
Enabled: true
EnforcedStyle: ruby19
Style/MethodCallWithArgsParentheses:
Enabled: false
Style/MethodCallWithoutArgsParentheses:
Enabled: true
Style/NegatedIf:
Enabled: false
Style/NumericLiterals:
Enabled: true
Style/RedundantParentheses:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantReturn:
Enabled: true
# Even when conservative, this is unsafe.
#Style/StringConcatenation:
# Enabled: true
# Mode: 'conservative'
Style/StringLiterals:
Enabled: true
Style/SymbolArray:
Enabled: true
Style/WordArray:
Enabled: true
# Performance cops have been transferred to rubocop-performance gem.
require: rubocop-performance
Performance/DoubleStartEndWith:
Enabled: true
Performance/RedundantMerge:
Enabled: true
Performance/RegexpMatch:
Enabled: true
Performance/StringReplacement:
Enabled: true