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

Closed
andyw8 opened this issue Jan 12, 2024 · 0 comments · Fixed by #395
Closed

New linter suggestion: Enforce strict locals #338

andyw8 opened this issue Jan 12, 2024 · 0 comments · Fixed by #395

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

Successfully merging a pull request may close this issue.

1 participant