You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lint being reported here is not referring to the :preserve line, although I can understand the confusion. It's actually referring to some interpolation within the :preserve filter content itself, e.g.
:preserve
#{Module::method}
You can fix the problem by writing:
:preserve
#{Module.method}
Right now, all lints found in HAML filters are reported on the line of the filter's name. This obviously isn't ideal, but since we aren't heavy users of filters at Brigade we were comfortable with taking a shortcut here.
Well I feel dumb for not inspecting what was inside the preserve. I think a note in the readme regarding filters would be sufficient. I searched for information on them before posting, but couldn't find anything.
Thanks for the help, and great job on this linter!
I have a few places where I use the
preserve
haml filter, and they get checked with rubocop and throw the ColonMethodCall warning.The text was updated successfully, but these errors were encountered: