Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New linter suggestion: Enforce strict locals #338

Open
andyw8 opened this issue Jan 12, 2024 · 0 comments
Open

New linter suggestion: Enforce strict locals #338

andyw8 opened this issue Jan 12, 2024 · 0 comments

Comments

@andyw8
Copy link
Contributor

andyw8 commented Jan 12, 2024

Introduced in Rails 7.1:

rails/rails#45602
https://masilotti.com/safer-rails-partials-with-strict-locals/

At a minimum, this would check for the presence of the <%# locals: ... %> magic comment in each partial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant