Rubocop to avoid stylesheet_link_tag
What does this MR do and why?
Rubocop to avoid stylesheet_link_tag
With !152223 (merged) we
introduced a new wrapper around stylesheet_link_tag
:
universal_stylesheet_link_tag
. The wrapper makes sure that when
running vite locally, the CSS is being loaded correctly.
We already had a regression before: !157356 (merged)
So let's write a cop to prevent future regressions.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Add
stylesheet_link_tag 'application'
to any haml or rb file - Run `bundle exec rubocop