github / github/rubocop-rails-accessibility

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

Open
#3 0 comments 0 reactions 2 assignees Claimed by @bolonio View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.