Add and apply MultilineMethodCallBraceLayout rule

In order for this rule to work effectively when running `--autocorrect`,
we also need to enable the `ClosingParenthesisIndentation` rule.
This commit is contained in:
Javi Martín
2023-07-01 18:18:22 +02:00
parent 5b6de96241
commit 1a098dfcab
36 changed files with 74 additions and 65 deletions

View File

@@ -9,8 +9,7 @@ describe Shared::BannerComponent do
post_started_at: (Date.current - 4.days),
post_ended_at: (Date.current + 10.days),
background_color: "#FF0000",
font_color: "#FFFFFF"
)
font_color: "#FFFFFF")
render_inline Shared::BannerComponent.new(banner)
@@ -38,15 +37,13 @@ describe Shared::BannerComponent do
web_sections: [WebSection.find_by!(name: "debates")],
title: "First banner",
description: "First description",
target_url: "/first_target"
)
target_url: "/first_target")
create(:banner,
web_sections: [WebSection.find_by!(name: "debates")],
title: "Second banner",
description: "Second description",
target_url: "/second_target"
)
target_url: "/second_target")
end
it "only renders one banner" do