Enable Style/YodaCondition

This commit is contained in:
gregoirenovel 2018-10-01 13:53:55 +02:00
parent 1f4ef0074f
commit d1439f8a52
2 changed files with 2 additions and 2 deletions

View file

@ -1265,7 +1265,7 @@ Style/WordArray:
Enabled: false Enabled: false
Style/YodaCondition: Style/YodaCondition:
Enabled: false Enabled: true
Style/ZeroLengthPredicate: Style/ZeroLengthPredicate:
Enabled: true Enabled: true

View file

@ -211,7 +211,7 @@ class StatsController < ApplicationController
{ {
'Une démarche' => count_per_administrateur.select { |count| count == 1 }.count, 'Une démarche' => count_per_administrateur.select { |count| count == 1 }.count,
'Entre deux et cinq démarches' => count_per_administrateur.select { |count| count.in?(2..5) }.count, 'Entre deux et cinq démarches' => count_per_administrateur.select { |count| count.in?(2..5) }.count,
'Plus de cinq démarches' => count_per_administrateur.select { |count| 5 < count }.count 'Plus de cinq démarches' => count_per_administrateur.select { |count| count > 5 }.count
} }
end end