Fix Performance/Sample -> Style/Sample rubocop
This commit is contained in:
parent
008eaf3d22
commit
f70600921f
14
.rubocop.yml
14
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user