-
Notifications
You must be signed in to change notification settings - Fork 49
/
.rubocop.yml
129 lines (85 loc) · 1.83 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
require: rubocop-performance
AllCops:
TargetRubyVersion: 2.4
NewCops: enable
SuggestExtensions: false
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/EmptyLineBetweenDefs:
Enabled: true
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/SpaceAfterComma:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceBeforeSemicolon:
Enabled: true
Lint/MissingSuper:
Enabled: false
Lint/DuplicateMethods:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: true
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Enabled: false
# Offense count: 13
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Layout/LineLength:
Max: 80
Metrics/MethodLength:
Enabled: false
# Offense count: 1
Metrics/PerceivedComplexity:
Max: 8
Performance/RedundantBlockCall:
Enabled: true
Naming/MethodName:
Enabled: true
Naming/BinaryOperatorParameterName:
Enabled: true
Style/ClassVars:
Enabled: true
Style/Documentation:
Enabled: true
Style/DoubleNegation:
Enabled: true
Style/EmptyLiteral:
Enabled: true
Style/GuardClause:
Enabled: true
Style/HashSyntax:
Enabled: true
Style/NumericLiterals:
MinDigits: 5
Style/PreferredHashMethods:
Enabled: true
Style/RedundantArgument:
Enabled: false
Style/RedundantFetchBlock:
Enabled: false
Style/RedundantReturn:
Enabled: true
Style/RedundantSelf:
Enabled: true
Style/SafeNavigation:
Enabled: false
Style/SingleLineMethods:
Enabled: false
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names
Style/StringLiterals:
Enabled: true
Style/TrivialAccessors:
Enabled: true
Style/RedundantPercentQ:
Enabled: true
Style/DateTime:
Enabled: false