-
Notifications
You must be signed in to change notification settings - Fork 1
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
`shortCircuitCondition' detector #202
`shortCircuitCondition' detector #202
Conversation
…ressions to leverage short-circuit evaluation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's improve it a little bit.
- Enhance suggestion messages with prettier formatting and clearer explanations - Simplify expensive call detection using findInExpressions - Update condition reordering logic to focus on function call costs - Remove redundant constant expression checks - Add explicit handling for init_of expressions - Improve warning messages formatting and clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I suggest merging it after updating the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #144
CHANGELOG.md
yarn test-all