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

Allow RailsViewRenderShorthand errors to be autocorrected #114

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

mgriffin
Copy link
Contributor

This PR adds an autocorrect option to the RailsViewRenderShorthand cop, reusing the message text to fix up the problems. It's pretty simplistic as a solution but the messages are correct so it all works.

The text is already provided in the error message, this reuses it to
allow the problem to be auto corrected
Copy link
Member

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@jhawthorn jhawthorn merged commit aad3693 into main Oct 19, 2022
@mgriffin mgriffin deleted the mgriffin/autocorrect-view-shorthand branch October 20, 2022 09:12
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 this pull request may close these issues.

2 participants