rufo icon indicating copy to clipboard operation
rufo copied to clipboard

Support native erb comments

Open xdmx opened this issue 3 months ago • 1 comments

I'm using Rufo together with the Herb formatter in Zed and I've noticed that Rufo changes code like <%# locals: (item:, variant:) %> to <% # locals: (item:, variant:) %> and then Herb's linter complains that there shouldn't be any space for the comment: https://herb-tools.dev/linter/rules/erb-comment-syntax

It'd be great if Rufo supported the erb's comments (<%#) instead

xdmx avatar Nov 19 '25 10:11 xdmx

FWIW, ActionView expects the "Strict Locals" to be defined using <%#:

https://guides.rubyonrails.org/action_view_overview.html#strict-locals

marcoroth avatar Dec 17 '25 23:12 marcoroth