-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
ConditionalAssignment with assign_inside_condition #2992
Comments
/cc @rrosenblum |
Can you please provide an example of some code that causes this error? |
I would also love an option to enforce |
@defrex, that sounds doable to me. I think the easiest way to implement this will be to add a config option outside of the This might take a little while to implement. That cop is very complex and probably the worst offender to any of the Metrics cops. I will try to get started on the configuration in the next couple of days. |
…o toggle offenses to ternary conditions
There are a few changes to
assign_inside_condition
that would be better for us:The text was updated successfully, but these errors were encountered: