rubocop-rails-accessibility icon indicating copy to clipboard operation
rubocop-rails-accessibility copied to clipboard

Add support for other formats of `link_to` in the `RailsAccessibility/LinkHasHref` rule

Open khiga8 opened this issue 2 years ago • 0 comments

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 %>

khiga8 avatar Sep 01 '22 15:09 khiga8