Commit b4c2a3375926edb0346ac2702a36918d5f6f1dc9
1 parent
f6bea424
Exists in
master
and in
1 other branch
Rubocop: minor performance change: use Array.sample over Array.shuffle.first
Showing
3 changed files
with
2 additions
and
9 deletions
Show diff stats
.rubocop_todo.yml
... | ... | @@ -35,13 +35,6 @@ Metrics/PerceivedComplexity: |
35 | 35 | |
36 | 36 | # Offense count: 2 |
37 | 37 | # Cop supports --auto-correct. |
38 | -Performance/Sample: | |
39 | - Exclude: | |
40 | - - 'lib/tasks/errbit/demo.rake' | |
41 | - - 'spec/fabricators/backtrace_fabricator.rb' | |
42 | - | |
43 | -# Offense count: 2 | |
44 | -# Cop supports --auto-correct. | |
45 | 38 | Performance/StringReplacement: |
46 | 39 | Exclude: |
47 | 40 | - 'app/models/notification_services/gtalk_service.rb' | ... | ... |
lib/tasks/errbit/demo.rake
spec/fabricators/backtrace_fabricator.rb