When linting this HTML+ERB file:
<% if true %>
<%= link_to "Foo", foo_path %>
<% end %>
I get the following offense:
[error] Avoid using <% %> with link_to. Use <%= %> to ensure the helper's output is rendered. (actionview-no-silent-helper)
app/views/building_admin/custom_screensavers/_custom_screensaver.html.erb:1:0
→ 1 │ <% if true %>
│ ~~~~~~~~~
2 │ <%= link_to "Foo", foo_path %>
3 │ <% end %>
This seems to be a regression in 0.9.6, as the same file produces no offenses on 0.9.5.
When linting this HTML+ERB file:
I get the following offense:
This seems to be a regression in 0.9.6, as the same file produces no offenses on 0.9.5.