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

FN neg_multiply: x *= -1 ? #3037

Open
matthiaskrgr opened this issue Aug 11, 2018 · 0 comments
Open

FN neg_multiply: x *= -1 ? #3037

matthiaskrgr opened this issue Aug 11, 2018 · 0 comments
Labels
I-false-negative Issue: The lint should have been triggered on code, but wasn't S-needs-discussion Status: Needs further discussion before merging or work can be started

Comments

@matthiaskrgr
Copy link
Member

For some reason the lint catches

x = x * -1;

but not

x *= -1;

is this intended?
(I assume it wants x = -x)

@phansch phansch added the S-needs-discussion Status: Needs further discussion before merging or work can be started label Dec 11, 2018
@matthiaskrgr matthiaskrgr added the I-false-negative Issue: The lint should have been triggered on code, but wasn't label Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-false-negative Issue: The lint should have been triggered on code, but wasn't S-needs-discussion Status: Needs further discussion before merging or work can be started
Projects
None yet
Development

No branches or pull requests

2 participants