Enable the Layout/MultilineArrayBraceLayout cop

This commit is contained in:
gregoirenovel 2018-01-15 19:17:01 +01:00
parent 345b892956
commit 14c1747645
4 changed files with 8 additions and 4 deletions

View file

@ -124,7 +124,8 @@ Layout/LeadingCommentSpace:
Enabled: true
Layout/MultilineArrayBraceLayout:
Enabled: false
Enabled: true
EnforcedStyle: new_line
Layout/MultilineAssignmentLayout:
Enabled: false

View file

@ -97,7 +97,8 @@ module TagsSubstitutionConcern
[dossier_tags, dossier],
[individual_tags, dossier.individual],
[entreprise_tags, dossier.entreprise],
[etablissement_tags, dossier.entreprise&.etablissement]]
[etablissement_tags, dossier.entreprise&.etablissement]
]
tags_and_datas
.map { |(tags, data)| [filter_tags(tags, dossier.termine?), data] }

View file

@ -162,7 +162,8 @@ feature 'The gestionnaire part' do
"suivi #{suivi}",
"traité #{traite}",
"tous les dossiers #{tous_les_dossiers}",
"archivé #{archive}"]
"archivé #{archive}"
]
texts.each { |text| expect(page).to have_text(text) }
end

View file

@ -5,7 +5,8 @@ describe ProcedurePresentation do
ProcedurePresentation.create(
displayed_fields: [
{ "label" => "test1", "table" => "user" }.to_json,
{ "label" => "test2", "table" => "champs" }.to_json],
{ "label" => "test2", "table" => "champs" }.to_json
],
sort: { "table" => "user","column" => "email","order" => "asc" }.to_json,
filters: { "a-suivre" => [], "suivis" => [{ "label" => "label1", "table" => "table1", "column" => "column1" }] }.to_json
).id