-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
.rubocop_performance.yml
168 lines (116 loc) · 4.6 KB
/
.rubocop_performance.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
---
# Last updated to 1.16.0
require:
- 'rubocop-performance'
################################################################################
# PERFORMANCE
################################################################################
Performance/AncestorsInclude:
Enabled: true
# Mistakenly created: https://github.com/rubocop-hq/rubocop-performance/pull/199/files
Performance/ArraySemiInfiniteRangeSlice:
Enabled: false
Performance/BigDecimalWithNumericArgument:
Enabled: true
Performance/BindCall:
Enabled: true
Performance/BlockGivenWithExplicitBlock:
Enabled: true
Performance/Caller:
Enabled: true
Performance/Casecmp:
Enabled: true
Performance/CaseWhenSplat:
Enabled: true
Performance/ChainArrayAllocation:
# Disallows: Most compact chaining where performance impact is minimal
Enabled: false
Performance/CollectionLiteralInLoop:
Enabled: true
MinSize: 1
Exclude:
- '**/spec/**/*.rb'
Performance/CompareWithBlock:
Enabled: true
Performance/ConcurrentMonotonicTime:
Enabled: true
Performance/ConstantRegexp:
Enabled: true
Performance/Count:
Enabled: true
Performance/DeletePrefix:
Enabled: true
Performance/DeleteSuffix:
Enabled: true
Performance/Detect:
Enabled: true
Performance/DoubleStartEndWith:
Enabled: true
IncludeActiveSupportAliases: true
Performance/EndWith:
Enabled: true
Performance/FixedSize:
Enabled: true
Performance/FlatMap:
Enabled: true
Performance/InefficientHashSearch:
Enabled: true
Performance/IoReadlines:
Enabled: true
Performance/MapCompact:
Enabled: true
Performance/MethodObjectAsBlock:
Enabled: true
Performance/OpenStruct:
Enabled: true
Exclude:
- '**/spec/**/*.rb'
Performance/RangeInclude:
Enabled: true
Performance/RedundantBlockCall:
Enabled: true
Performance/RedundantEqualityComparisonBlock:
Enabled: true
Performance/RedundantMatch:
Enabled: true
Performance/RedundantMerge:
Enabled: true
Performance/RedundantSortBlock:
Enabled: true
Performance/RedundantSplitRegexpArgument:
Enabled: true
Performance/RedundantStringChars:
Enabled: true
Performance/RegexpMatch:
Enabled: true
Performance/ReverseEach:
Enabled: true
Performance/ReverseFirst:
Enabled: true
# filter_map excludes `false` unlike `compact` which does not.
Performance/SelectMap:
Enabled: false
Performance/Size:
Enabled: true
Performance/SortReverse:
Enabled: true
Performance/Squeeze:
Enabled: true
Performance/StartWith:
Enabled: true
Performance/StringIdentifierArgument:
Enabled: true
Performance/StringInclude:
Enabled: true
Performance/StringReplacement:
Enabled: true
Performance/Sum:
Enabled: true
OnlySumOrWithInitialValue: false
Performance/TimesMap:
Enabled: true
AutoCorrect: true
Performance/UnfreezeString:
Enabled: true
Performance/UriDefaultParser:
Enabled: true