From f70600921fb1170ec318c591fff52839e304c497 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Mon, 29 Jun 2020 20:57:24 -0300 Subject: [PATCH] Fix Performance/Sample -> Style/Sample rubocop --- .rubocop.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e07814e4..06377b49 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -291,13 +291,6 @@ Performance/ReverseEach: Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code' Enabled: true -Performance/Sample: - Description: >- - Use `sample` instead of `shuffle.first`, - `shuffle.last`, and `shuffle[Fixnum]`. - Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code' - Enabled: true - Performance/Size: Description: >- Use `size` instead of `count` for counting @@ -551,6 +544,13 @@ Style/EachWithObject: Description: 'Prefer `each_with_object` over `inject` or `reduce`.' Enabled: false +Style/Sample: + Description: >- + Use `sample` instead of `shuffle.first`, + `shuffle.last`, and `shuffle[Fixnum]`. + Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code' + Enabled: true + Layout/ElseAlignment: Description: 'Align elses and elsifs correctly.' Enabled: false