Enable the Layout/CaseIndentation cop

This commit is contained in:
gregoirenovel 2017-06-12 15:05:46 +02:00
parent bc16027ccc
commit 1b78a8e957
2 changed files with 16 additions and 15 deletions

View file

@ -21,7 +21,8 @@ Layout/BlockEndNewline:
Enabled: true
Layout/CaseIndentation:
Enabled: false
Enabled: true
EnforcedStyle: end
Layout/ClosingParenthesisIndentation:
Enabled: true

View file

@ -25,20 +25,20 @@ class NotificationService
def text_for_notif attribut=''
case @type_notif
when 'commentaire'
"#{notification.liste.size + 1} nouveau(x) commentaire(s) déposé(s)."
when 'cerfa'
"Un nouveau formulaire a été déposé."
when 'piece_justificative'
attribut
when 'champs'
attribut
when 'submitted'
"Le dossier nº #{@dossier_id} a été déposé."
when 'avis'
'Un nouvel avis a été rendu'
else
'Notification par défaut'
when 'commentaire'
"#{notification.liste.size + 1} nouveau(x) commentaire(s) déposé(s)."
when 'cerfa'
"Un nouveau formulaire a été déposé."
when 'piece_justificative'
attribut
when 'champs'
attribut
when 'submitted'
"Le dossier nº #{@dossier_id} a été déposé."
when 'avis'
'Un nouvel avis a été rendu'
else
'Notification par défaut'
end
end
end