Add and apply ArgumentAlignment rubocop rule

We're choosing the default `with_first_argument` style because it's the
one we use the most.
This commit is contained in:
Javi Martín
2023-07-01 17:37:58 +02:00
parent 32b1fc53e1
commit 629e208e9d
202 changed files with 907 additions and 830 deletions

View File

@@ -2,7 +2,7 @@ module LinksHelper
def render_destroy_element_link(builder, element)
link_to_remove_association element.new_record? ? t("links.form.cancel_button") :
t("links.form.delete_button"),
builder, class: "delete remove-element"
builder, class: "delete remove-element"
end
def link_to_signin(options = {})

View File

@@ -60,10 +60,10 @@ module ProposalsDashboardHelper
label = []
label << t("dashboard.resource.required_days",
days: resource.day_offset) if resource.day_offset > 0
days: resource.day_offset) if resource.day_offset > 0
label << t("dashboard.resource.required_supports",
supports: number_with_delimiter(resource.required_supports,
delimiter: ".")) if resource.required_supports > 0
supports: number_with_delimiter(resource.required_supports,
delimiter: ".")) if resource.required_supports > 0
safe_join label, h(" #{t("dashboard.resource.and")})") + tag(:br)
end