forked from SamSaffron/lru_redux
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
173 lines (139 loc) · 4.56 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
AllCops:
TargetRubyVersion: 2.3
NewCops: enable
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecrequiredrubyversion
Gemspec/RequiredRubyVersion:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutfirstarrayelementindentation
Layout/FirstArrayElementIndentation:
Enabled: true
EnforcedStyle: consistent
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinelength
Layout/LineLength:
Enabled: true
Max: 150
AllowURI: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize
Metrics/AbcSize:
Enabled: true
Max: 25
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocklength
Metrics/BlockLength:
Enabled: true
Max: 30
Exclude:
- 'sin_lru_redux.gemspec'
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsclasslength
Metrics/ClassLength:
Enabled: true
CountComments: false
Max: 200
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmethodlength
Metrics/MethodLength:
Enabled: true
CountComments: false
Max: 25
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmodulelength
Metrics/ModuleLength:
Enabled: true
Max: 200
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsparameterlists
Metrics/ParameterLists:
Enabled: true
Max: 5
CountKeywordArgs: true
# https://docs.rubocop.org/rubocop/cops_naming.html#namingaccessormethodname
Naming/AccessorMethodName:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_naming.html#namingblockforwarding
Naming/BlockForwarding:
Enabled: true
EnforcedStyle: explicit
# https://docs.rubocop.org/rubocop/cops_naming.html#namingmemoizedinstancevariablename
Naming/MemoizedInstanceVariableName:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleaccessmodifierdeclarations
Style/AccessModifierDeclarations:
Enabled: true
AllowModifiersOnSymbols: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylealias
Style/Alias:
Enabled: true
EnforcedStyle: prefer_alias_method
# https://docs.rubocop.org/rubocop/cops_style.html#styleargumentsforwarding
Style/ArgumentsForwarding:
Enabled: true
UseAnonymousForwarding: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleasciicomments
Style/AsciiComments:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleclassandmodulechildren
Style/ClassAndModuleChildren:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylecollectionmethods
Style/CollectionMethods:
Enabled: true
PreferredMethods:
detect: 'detect'
find: 'detect'
inject: 'inject'
reduce: 'inject'
# https://docs.rubocop.org/rubocop/cops_style.html#styleconditionalassignment
Style/ConditionalAssignment:
Enabled: true
EnforcedStyle: assign_inside_condition
# https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
Style/Documentation:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleemptymethod
Style/EmptyMethod:
Enabled: true
EnforcedStyle: expanded
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax
Style/HashSyntax:
Enabled: true
EnforcedStyle: ruby19_no_mixed_keys
EnforcedShorthandSyntax: never
# https://docs.rubocop.org/rubocop/cops_style.html#stylelambda
Style/Lambda:
Enabled: true
EnforcedStyle: literal
# https://docs.rubocop.org/rubocop/cops_style.html#stylelineendconcatenation
Style/LineEndConcatenation:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylenumericliterals
Style/NumericLiterals:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylenumericpredicate
Style/NumericPredicate:
Enabled: true
EnforcedStyle: comparison
# https://docs.rubocop.org/rubocop/cops_style.html#styleraiseargs
Style/RaiseArgs:
Enabled: true
EnforcedStyle: compact
# https://docs.rubocop.org/rubocop/cops_style.html#stylesuperarguments
Style/SuperArguments:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylesymbolarray
Style/SymbolArray:
Enabled: true
EnforcedStyle: brackets
# https://docs.rubocop.org/rubocop/cops_style.html#styleternaryparentheses
Style/TernaryParentheses:
Enabled: true
EnforcedStyle: require_parentheses_when_complex
AllowSafeAssignment: false
# https://docs.rubocop.org/rubocop/cops_style.html#styletrailingunderscorevariable
Style/TrailingUnderscoreVariable:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleunpackfirst
Style/UnpackFirst:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylewordarray
Style/WordArray:
Enabled: false