docquet 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +20 -0
  3. data/LICENSE +21 -0
  4. data/README.md +205 -0
  5. data/config/cops/bundler.yml +19 -0
  6. data/config/cops/capybara.yml +1 -0
  7. data/config/cops/capybara_rspec.yml +1 -0
  8. data/config/cops/gemspec.yml +4 -0
  9. data/config/cops/i18n_gettext.yml +2 -0
  10. data/config/cops/i18n_railsi18n.yml +1 -0
  11. data/config/cops/layout.yml +79 -0
  12. data/config/cops/lint.yml +7 -0
  13. data/config/cops/metrics.yml +14 -0
  14. data/config/cops/migration.yml +2 -0
  15. data/config/cops/naming.yml +4 -0
  16. data/config/cops/performance.yml +7 -0
  17. data/config/cops/rake.yml +5 -0
  18. data/config/cops/rspec.yml +41 -0
  19. data/config/cops/security.yml +1 -0
  20. data/config/cops/sequel.yml +2 -0
  21. data/config/cops/style.yml +153 -0
  22. data/config/cops/thread_safety.yml +5 -0
  23. data/config/defaults/bundler.yml +97 -0
  24. data/config/defaults/capybara.yml +103 -0
  25. data/config/defaults/capybara_rspec.yml +24 -0
  26. data/config/defaults/gemspec.yml +121 -0
  27. data/config/defaults/i18n_gettext.yml +20 -0
  28. data/config/defaults/i18n_railsi18n.yml +9 -0
  29. data/config/defaults/layout.yml +1121 -0
  30. data/config/defaults/lint.yml +1315 -0
  31. data/config/defaults/metrics.yml +119 -0
  32. data/config/defaults/migration.yml +9 -0
  33. data/config/defaults/naming.yml +332 -0
  34. data/config/defaults/performance.yml +445 -0
  35. data/config/defaults/rake.yml +34 -0
  36. data/config/defaults/rspec.yml +1081 -0
  37. data/config/defaults/security.yml +67 -0
  38. data/config/defaults/sequel.yml +59 -0
  39. data/config/defaults/style.yml +2985 -0
  40. data/config/defaults/thread_safety.yml +45 -0
  41. data/exe/docquet +7 -0
  42. data/lib/docquet/cli/base.rb +21 -0
  43. data/lib/docquet/cli/install_config.rb +75 -0
  44. data/lib/docquet/cli/regenerate_todo.rb +46 -0
  45. data/lib/docquet/cli.rb +6 -0
  46. data/lib/docquet/commands.rb +12 -0
  47. data/lib/docquet/config_processor.rb +52 -0
  48. data/lib/docquet/generators/rubocop_yml_generator.rb +78 -0
  49. data/lib/docquet/inflector.rb +22 -0
  50. data/lib/docquet/plugin_detector.rb +29 -0
  51. data/lib/docquet/rake_task.rb +126 -0
  52. data/lib/docquet/version.rb +6 -0
  53. data/lib/docquet.rb +17 -0
  54. data/templates/rubocop.yml.erb +35 -0
  55. metadata +172 -0
@@ -0,0 +1,445 @@
1
+ # Department 'Performance' (52):
2
+ # Supports --autocorrect
3
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceancestorsinclude
4
+ Performance/AncestorsInclude:
5
+ Description: Use `A <= B` instead of `A.ancestors.include?(B)`.
6
+ Reference: https://github.com/fastruby/fast-ruby#ancestorsinclude-vs--code
7
+ Enabled: true # was pending
8
+ Safe: false
9
+ VersionAdded: '1.7'
10
+
11
+ # Supports --autocorrect
12
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancearraysemiinfiniterangeslice
13
+ Performance/ArraySemiInfiniteRangeSlice:
14
+ Description: Identifies places where slicing arrays with semi-infinite ranges can
15
+ be replaced by `Array#take` and `Array#drop`.
16
+ Enabled: true # was false
17
+ Safe: false
18
+ VersionAdded: '1.9'
19
+
20
+ # Supports --autocorrect
21
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancebigdecimalwithnumericargument
22
+ Performance/BigDecimalWithNumericArgument:
23
+ Description: Convert numeric literal to string and pass it to `BigDecimal`.
24
+ Enabled: true # was false
25
+ VersionAdded: '1.7'
26
+ VersionChanged: '1.26'
27
+
28
+ # Supports --autocorrect
29
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancebindcall
30
+ Performance/BindCall:
31
+ Description: Use `bind_call(obj, args, ...)` instead of `bind(obj).call(args, ...)`.
32
+ Enabled: true
33
+ VersionAdded: '1.6'
34
+
35
+ # Supports --autocorrect
36
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceblockgivenwithexplicitblock
37
+ Performance/BlockGivenWithExplicitBlock:
38
+ Description: Check block argument explicitly instead of using `block_given?`.
39
+ Enabled: true # was false
40
+ VersionAdded: '1.9'
41
+ VersionChanged: '1.22'
42
+
43
+ # Supports --autocorrect
44
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecaller
45
+ Performance/Caller:
46
+ Description: Use `caller(n..n)` instead of `caller`.
47
+ Enabled: true
48
+ VersionAdded: '0.49'
49
+ VersionChanged: '1.9'
50
+
51
+ # Supports --autocorrect
52
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecasewhensplat
53
+ Performance/CaseWhenSplat:
54
+ Description: Reordering `when` conditions with a splat to the end of the `when` branches
55
+ can improve performance.
56
+ Enabled: true # was false
57
+ SafeAutoCorrect: false
58
+ VersionAdded: '0.34'
59
+ VersionChanged: '1.13'
60
+
61
+ # Supports --autocorrect
62
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecasecmp
63
+ Performance/Casecmp:
64
+ Description: Use `casecmp` rather than `downcase ==`, `upcase ==`, `== downcase`,
65
+ or `== upcase`..
66
+ Reference: https://github.com/fastruby/fast-ruby#stringcasecmp-vs--stringcasecmp-vs-stringdowncase---code
67
+ Enabled: true # was false
68
+ Safe: false
69
+ VersionAdded: '0.36'
70
+ VersionChanged: '1.21'
71
+
72
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancechainarrayallocation
73
+ Performance/ChainArrayAllocation:
74
+ Description: Instead of chaining array methods that allocate new arrays, mutate an
75
+ existing array.
76
+ Enabled: true # was false
77
+ VersionAdded: '0.59'
78
+
79
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecollectionliteralinloop
80
+ Performance/CollectionLiteralInLoop:
81
+ Description: Extract Array and Hash literals outside of loops into local variables
82
+ or constants.
83
+ Enabled: true # was pending
84
+ VersionAdded: '1.8'
85
+ MinSize: 1
86
+
87
+ # Supports --autocorrect
88
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecomparewithblock
89
+ Performance/CompareWithBlock:
90
+ Description: Use `sort_by(&:foo)` instead of `sort { |a, b| a.foo <=> b.foo }`.
91
+ Enabled: true
92
+ VersionAdded: '0.46'
93
+
94
+ # Supports --autocorrect
95
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceconcurrentmonotonictime
96
+ Performance/ConcurrentMonotonicTime:
97
+ Description: Use `Process.clock_gettime(Process::CLOCK_MONOTONIC)` instead of `Concurrent.monotonic_time`.
98
+ Reference: https://github.com/rails/rails/pull/43502
99
+ Enabled: true # was pending
100
+ VersionAdded: '1.12'
101
+
102
+ # Supports --autocorrect
103
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceconstantregexp
104
+ Performance/ConstantRegexp:
105
+ Description: Finds regular expressions with dynamic components that are all constants.
106
+ Enabled: true # was pending
107
+ VersionAdded: '1.9'
108
+ VersionChanged: '1.10'
109
+
110
+ # Supports --autocorrect
111
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecount
112
+ Performance/Count:
113
+ Description: Use `count` instead of `{select,find_all,filter,reject}...{size,count,length}`.
114
+ SafeAutoCorrect: false
115
+ Enabled: true
116
+ VersionAdded: '0.31'
117
+ VersionChanged: '1.8'
118
+
119
+ # Supports --autocorrect
120
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancedeleteprefix
121
+ Performance/DeletePrefix:
122
+ Description: Use `delete_prefix` instead of `gsub`.
123
+ Enabled: true
124
+ Safe: false
125
+ SafeMultiline: true
126
+ VersionAdded: '1.6'
127
+ VersionChanged: '1.11'
128
+
129
+ # Supports --autocorrect
130
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancedeletesuffix
131
+ Performance/DeleteSuffix:
132
+ Description: Use `delete_suffix` instead of `gsub`.
133
+ Enabled: true
134
+ Safe: false
135
+ SafeMultiline: true
136
+ VersionAdded: '1.6'
137
+ VersionChanged: '1.11'
138
+
139
+ # Supports --autocorrect
140
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancedetect
141
+ Performance/Detect:
142
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `filter.first`,
143
+ `select.last`, `find_all.last`, and `filter.last`.
144
+ Reference: https://github.com/fastruby/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
145
+ SafeAutoCorrect: false
146
+ Enabled: true
147
+ VersionAdded: '0.30'
148
+ VersionChanged: '1.8'
149
+
150
+ # Supports --autocorrect
151
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancedoublestartendwith
152
+ Performance/DoubleStartEndWith:
153
+ Description: Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x,
154
+ ...) || str.{start,end}_with?(y, ...)`.
155
+ Enabled: true
156
+ VersionAdded: '0.36'
157
+ VersionChanged: '0.48'
158
+ IncludeActiveSupportAliases: false
159
+
160
+ # Supports --autocorrect
161
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceendwith
162
+ Performance/EndWith:
163
+ Description: Use `end_with?` instead of a regex match anchored to the end of a string.
164
+ Reference: https://github.com/fastruby/fast-ruby#stringmatch-vs-stringmatch-vs-stringstart_withstringend_with-code-start-code-end
165
+ SafeAutoCorrect: false
166
+ Enabled: true
167
+ SafeMultiline: true
168
+ VersionAdded: '0.36'
169
+ VersionChanged: '1.10'
170
+
171
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancefixedsize
172
+ Performance/FixedSize:
173
+ Description: Do not compute the size of statically sized objects except in constants.
174
+ Enabled: true
175
+ VersionAdded: '0.35'
176
+
177
+ # Supports --autocorrect
178
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceflatmap
179
+ Performance/FlatMap:
180
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)`
181
+ or `Enumerable#collect..Array#flatten(1)`.
182
+ Reference: https://github.com/fastruby/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
183
+ Enabled: true
184
+ VersionAdded: '0.30'
185
+ EnabledForFlattenWithoutParams: false
186
+
187
+ # Supports --autocorrect
188
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceinefficienthashsearch
189
+ Performance/InefficientHashSearch:
190
+ Description: Use `key?` or `value?` instead of `keys.include?` or `values.include?`.
191
+ Reference: https://github.com/fastruby/fast-ruby#hashkey-instead-of-hashkeysinclude-code
192
+ Enabled: true
193
+ VersionAdded: '0.56'
194
+ Safe: false
195
+
196
+ # Supports --autocorrect
197
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceioreadlines
198
+ Performance/IoReadlines:
199
+ Description: Use `IO.each_line` (`IO#each_line`) instead of `IO.readlines` (`IO#readlines`).
200
+ Reference: https://docs.gitlab.com/development/performance/#reading-from-files-and-other-data-sources
201
+ Enabled: true # was false
202
+ VersionAdded: '1.7'
203
+
204
+ # Supports --autocorrect
205
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemapcompact
206
+ Performance/MapCompact:
207
+ Description: Use `filter_map` instead of `collection.map(&:do_something).compact`.
208
+ Enabled: true # was pending
209
+ Safe: false
210
+ VersionAdded: '1.11'
211
+
212
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemapmethodchain
213
+ Performance/MapMethodChain:
214
+ Description: Checks if the `map` method is used in a chain.
215
+ Enabled: true # was pending
216
+ Safe: false
217
+ VersionAdded: '1.19'
218
+
219
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemethodobjectasblock
220
+ Performance/MethodObjectAsBlock:
221
+ Description: Use block explicitly instead of block-passing a method object.
222
+ Reference: https://github.com/fastruby/fast-ruby#normal-way-to-apply-method-vs-method-code
223
+ Enabled: true # was pending
224
+ VersionAdded: '1.9'
225
+
226
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceopenstruct
227
+ Performance/OpenStruct:
228
+ Description: Use `Struct` instead of `OpenStruct`.
229
+ Enabled: true # was false
230
+ VersionAdded: '0.61'
231
+ Safe: false
232
+
233
+ # Supports --autocorrect
234
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancerangeinclude
235
+ Performance/RangeInclude:
236
+ Description: Use `Range#cover?` instead of `Range#include?` (or `Range#member?`).
237
+ Reference: https://github.com/fastruby/fast-ruby#cover-vs-include-code
238
+ Enabled: true
239
+ VersionAdded: '0.36'
240
+ VersionChanged: '1.7'
241
+ Safe: false
242
+
243
+ # Supports --autocorrect
244
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantblockcall
245
+ Performance/RedundantBlockCall:
246
+ Description: Use `yield` instead of `block.call`.
247
+ Reference: https://github.com/fastruby/fast-ruby#proccall-and-block-arguments-vs-yieldcode
248
+ Enabled: true
249
+ VersionAdded: '0.36'
250
+
251
+ # Supports --autocorrect
252
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantequalitycomparisonblock
253
+ Performance/RedundantEqualityComparisonBlock:
254
+ Description: Checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`,
255
+ or `Enumerable#none?` are compared with `===` or similar methods in block.
256
+ Reference: https://github.com/rails/rails/pull/41363
257
+ Enabled: true # was pending
258
+ Safe: false
259
+ AllowRegexpMatch: true
260
+ VersionAdded: '1.10'
261
+
262
+ # Supports --autocorrect
263
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantmatch
264
+ Performance/RedundantMatch:
265
+ Description: Use `=~` instead of `String#match` or `Regexp#match` in a context where
266
+ the returned `MatchData` is not needed.
267
+ Enabled: true
268
+ VersionAdded: '0.36'
269
+
270
+ # Supports --autocorrect
271
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantmerge
272
+ Performance/RedundantMerge:
273
+ Description: Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
274
+ Reference: https://github.com/fastruby/fast-ruby#hashmerge-vs-hash-code
275
+ Enabled: true
276
+ Safe: false
277
+ VersionAdded: '0.36'
278
+ VersionChanged: '1.11'
279
+ MaxKeyValuePairs: 2
280
+
281
+ # Supports --autocorrect
282
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsortblock
283
+ Performance/RedundantSortBlock:
284
+ Description: Use `sort` instead of `sort { |a, b| a <=> b }`.
285
+ Enabled: true # was pending
286
+ VersionAdded: '1.7'
287
+
288
+ # Supports --autocorrect
289
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsplitregexpargument
290
+ Performance/RedundantSplitRegexpArgument:
291
+ Description: Identifies places where `split` argument can be replaced from a deterministic
292
+ regexp to a string.
293
+ Enabled: true # was pending
294
+ VersionAdded: '1.10'
295
+
296
+ # Supports --autocorrect
297
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantstringchars
298
+ Performance/RedundantStringChars:
299
+ Description: Checks for redundant `String#chars`.
300
+ Enabled: true # was pending
301
+ VersionAdded: '1.7'
302
+
303
+ # Supports --autocorrect
304
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceregexpmatch
305
+ Performance/RegexpMatch:
306
+ Description: Use `match?` instead of `Regexp#match`, `String#match`, `Symbol#match`,
307
+ `Regexp#===`, or `=~` when `MatchData` is not used.
308
+ Reference: https://github.com/fastruby/fast-ruby#regexp-vs-regexpmatch-vs-regexpmatch-vs-stringmatch-vs-string-vs-stringmatch-code-
309
+ Enabled: true
310
+ VersionAdded: '0.47'
311
+
312
+ # Supports --autocorrect
313
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancereverseeach
314
+ Performance/ReverseEach:
315
+ Description: Use `reverse_each` instead of `reverse.each`.
316
+ Reference: https://github.com/fastruby/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
317
+ Enabled: true
318
+ VersionAdded: '0.30'
319
+
320
+ # Supports --autocorrect
321
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancereversefirst
322
+ Performance/ReverseFirst:
323
+ Description: Use `last(n).reverse` instead of `reverse.first(n)`.
324
+ Enabled: true # was pending
325
+ VersionAdded: '1.7'
326
+
327
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceselectmap
328
+ Performance/SelectMap:
329
+ Description: Use `filter_map` instead of `ary.select(&:foo).map(&:bar)`.
330
+ Enabled: true # was false
331
+ VersionAdded: '1.11'
332
+
333
+ # Supports --autocorrect
334
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesize
335
+ Performance/Size:
336
+ Description: Use `size` instead of `count` for counting the number of elements in
337
+ `Array` and `Hash`.
338
+ Reference: https://github.com/fastruby/fast-ruby#arraylength-vs-arraysize-vs-arraycount-code
339
+ Enabled: true
340
+ VersionAdded: '0.30'
341
+
342
+ # Supports --autocorrect
343
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesortreverse
344
+ Performance/SortReverse:
345
+ Description: Use `sort.reverse` instead of `sort { |a, b| b <=> a }`.
346
+ Enabled: true # was pending
347
+ VersionAdded: '1.7'
348
+
349
+ # Supports --autocorrect
350
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesqueeze
351
+ Performance/Squeeze:
352
+ Description: Use `squeeze('a')` instead of `gsub(/a+/, 'a')`.
353
+ Reference: https://github.com/fastruby/fast-ruby#remove-extra-spaces-or-other-contiguous-characters-code
354
+ Enabled: true # was pending
355
+ VersionAdded: '1.7'
356
+
357
+ # Supports --autocorrect
358
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestartwith
359
+ Performance/StartWith:
360
+ Description: Use `start_with?` instead of a regex match anchored to the beginning
361
+ of a string.
362
+ Reference: https://github.com/fastruby/fast-ruby#stringmatch-vs-stringmatch-vs-stringstart_withstringend_with-code-start-code-end
363
+ SafeAutoCorrect: false
364
+ Enabled: true
365
+ SafeMultiline: true
366
+ VersionAdded: '0.36'
367
+ VersionChanged: '1.10'
368
+
369
+ # Supports --autocorrect
370
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringbytesize
371
+ Performance/StringBytesize:
372
+ Description: Use `String#bytesize` instead of calculating the size of the bytes array.
373
+ Safe: false
374
+ Enabled: true # was pending
375
+ VersionAdded: '1.23'
376
+
377
+ # Supports --autocorrect
378
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringidentifierargument
379
+ Performance/StringIdentifierArgument:
380
+ Description: Use symbol identifier argument instead of string identifier argument.
381
+ Enabled: true # was pending
382
+ VersionAdded: '1.13'
383
+
384
+ # Supports --autocorrect
385
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringinclude
386
+ Performance/StringInclude:
387
+ Description: Use `String#include?` instead of a regex match with literal-only pattern.
388
+ Enabled: true # was pending
389
+ SafeAutoCorrect: false
390
+ VersionAdded: '1.7'
391
+ VersionChanged: '1.12'
392
+
393
+ # Supports --autocorrect
394
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringreplacement
395
+ Performance/StringReplacement:
396
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of
397
+ characters. Use `delete` instead of `gsub` when you are deleting characters.
398
+ Reference: https://github.com/fastruby/fast-ruby#stringgsub-vs-stringtr-code
399
+ Enabled: true
400
+ VersionAdded: '0.33'
401
+
402
+ # Supports --autocorrect
403
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesum
404
+ Performance/Sum:
405
+ Description: Use `sum` instead of a custom array summation.
406
+ SafeAutoCorrect: false
407
+ Reference: https://www.bigbinary.com/blog/ruby-2-4-introduces-enumerable-sum
408
+ Enabled: true # was pending
409
+ VersionAdded: '1.8'
410
+ VersionChanged: '1.13'
411
+ OnlySumOrWithInitialValue: false
412
+
413
+ # Supports --autocorrect
414
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancetimesmap
415
+ Performance/TimesMap:
416
+ Description: Checks for .times.map calls.
417
+ Enabled: true
418
+ SafeAutoCorrect: false
419
+ VersionAdded: '0.36'
420
+ VersionChanged: '1.13'
421
+
422
+ # Supports --autocorrect
423
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceunfreezestring
424
+ Performance/UnfreezeString:
425
+ Description: Use unary plus to get an unfrozen string literal.
426
+ Enabled: true
427
+ SafeAutoCorrect: false
428
+ VersionAdded: '0.50'
429
+ VersionChanged: '1.9'
430
+
431
+ # Supports --autocorrect
432
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceuridefaultparser
433
+ Performance/UriDefaultParser:
434
+ Description: Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.
435
+ Enabled: true
436
+ VersionAdded: '0.50'
437
+
438
+ # Supports --autocorrect
439
+ # https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancezipwithoutblock
440
+ Performance/ZipWithoutBlock:
441
+ Description: Checks for `map { |id| [id] }` and suggests replacing it with `zip`.
442
+ Enabled: true # was pending
443
+ Safe: false
444
+ VersionAdded: '1.24'
445
+
@@ -0,0 +1,34 @@
1
+ # Department 'Rake' (5):
2
+ # https://docs.rubocop.org/rubocop-rake/cops_rake.html#rakeclassdefinitionintask
3
+ Rake/ClassDefinitionInTask:
4
+ Description: Do not define a class or module in rake task, because it will be defined
5
+ to the top level.
6
+ Enabled: true
7
+ VersionAdded: 0.3.0
8
+
9
+ # Supports --autocorrect
10
+ # https://docs.rubocop.org/rubocop-rake/cops_rake.html#rakedesc
11
+ Rake/Desc:
12
+ Description: Describe the task with `desc` method.
13
+ Enabled: true
14
+ VersionAdded: 0.1.0
15
+
16
+ # https://docs.rubocop.org/rubocop-rake/cops_rake.html#rakeduplicatenamespace
17
+ Rake/DuplicateNamespace:
18
+ Description: Do not define namespace with the same name
19
+ Enabled: true
20
+ VersionAdded: 0.5.0
21
+
22
+ # https://docs.rubocop.org/rubocop-rake/cops_rake.html#rakeduplicatetask
23
+ Rake/DuplicateTask:
24
+ Description: Do not define tasks with the same name
25
+ Enabled: true
26
+ VersionAdded: 0.4.0
27
+
28
+ # https://docs.rubocop.org/rubocop-rake/cops_rake.html#rakemethoddefinitionintask
29
+ Rake/MethodDefinitionInTask:
30
+ Description: Do not define a method in rake task, because it will be defined to the
31
+ top level.
32
+ Enabled: true
33
+ VersionAdded: 0.2.0
34
+