This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
📎 Suggestion: Rename noConditionalAssignment
to noAssignmentInCondition
#3898
Locked
arendjr
started this conversation in
Suggestions
Replies: 1 comment
-
I think the suggestion makes sense |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I realize this may be a nitpick, but I found the name
noConditionalAssignment
to be confusing and thought it would relate to code such as this:But the rule is actually about assignments in places where conditions are expected. The assignment itself isn’t conditional though, it’s unconditionally executed when the condition is evaluated.
So I was hoping you may still consider renaming
noConditionalAssignment
tonoAssignmentInCondition
.Beta Was this translation helpful? Give feedback.
All reactions