rubocop-rails-accessibility
rubocop-rails-accessibility copied to clipboard
Add support for other formats of `link_to` in the `RailsAccessibility/LinkHasHref` rule
The RailsAccessibility/LinkHasHref
rule has been extended and still doesn't have support for various formats of link_to
which are difficult to account for, for example:
<%= link_to XXXX do %>
Text
<% end %>
for example:
<%= link_to network_dependabot_show_path(update_job_id: update_config.last_full_update_run.id) do %>
Last checked <%= time_ago_in_words_js Time.at(update_config.last_full_update_run.finished_at.seconds) %>
<% end %>