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

@@ -7,8 +7,8 @@
<p class="info">
<%= sanitize(t("layouts.footer.description",
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow"))) %>
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow"))) %>
</p>
</div>

View File

@@ -1,19 +1,19 @@
<% if user %>
<li>
<%= layout_menu_link_to t("layouts.header.my_activity_link"),
user_path(user),
controller_name == "users",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_activity_link") %>
user_path(user),
controller_name == "users",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_activity_link") %>
</li>
<li>
<%= layout_menu_link_to t("layouts.header.my_account_link"),
account_path,
controller_name == "account",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_account_link") %>
account_path,
controller_name == "account",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_account_link") %>
</li>
<li>
<%= link_to t("devise_views.menu.login_items.logout"),

View File

@@ -21,9 +21,9 @@
<% if feature?(:polls) %>
<li>
<%= layout_menu_link_to t("layouts.header.poll_questions"),
polls_path,
controller_name == "polls" || (controller_name == "questions" && controller.class.module_parent == Polls),
accesskey: "3" %>
polls_path,
controller_name == "polls" || (controller_name == "questions" && controller.class.module_parent == Polls),
accesskey: "3" %>
</li>
<% end %>
<% if feature?(:legislation) %>
@@ -37,9 +37,9 @@
<% if feature?(:budgets) %>
<li>
<%= layout_menu_link_to t("layouts.header.budgets"),
budgets_path,
controller_name == "budgets" || controller_name == "investments",
accesskey: "5" %>
budgets_path,
controller_name == "budgets" || controller_name == "investments",
accesskey: "5" %>
</li>
<% end %>
<% if feature?(:sdg) %>