github / github/rubocop-rails-accessibility
Add support for other formats of `link_to` in the `RailsAccessibility/LinkHasHref` rule
Open
- Dominant language
- Ruby
- Stars
- 40
- Forks
- 6
- Avg merge
- 10h 59m
- Merged PRs (30d)
- 2
Description
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 %>
```
Contributor guide
Assessment
This issue has not been assessed yet.