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

Mark callback binding cop as unsafe and disable it by default #81

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

vinistock
Copy link
Member

The callback binding cop has an unsafe auto-correct, since some libraries define similar style callbacks using the same names as Rails, but that need different types of bindings. This can lead to false positives and introduce typing errors when running auto-correct.

This PR just disables the cop by default, marks it as unsafe and adds a note about why in the documentation.

@vinistock vinistock requested a review from a team October 21, 2021 19:16
@vinistock vinistock force-pushed the mark_callback_cop_as_unsafe branch from ea9f8a7 to ebe2705 Compare October 21, 2021 19:17
vinistock and others added 2 commits October 21, 2021 15:55
@vinistock vinistock merged commit 6313c18 into master Oct 21, 2021
@vinistock vinistock deleted the mark_callback_cop_as_unsafe branch October 21, 2021 20:01
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.

3 participants