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

lint double comparisons #753

Open
llogiq opened this issue Mar 10, 2016 · 1 comment
Open

lint double comparisons #753

llogiq opened this issue Mar 10, 2016 · 1 comment
Labels
A-lint Area: New lints E-medium Call for participation: Medium difficulty level problem and requires some initial experience. T-AST Type: Requires working with the AST

Comments

@llogiq
Copy link
Contributor

llogiq commented Mar 10, 2016

Examples:
x == y || x < y / x < y || x == yx <= y
x == y || x > y / x > y || x == yx >= y
x < y || x > yx != y
x <= y && x >= y / x >= y && x <= yx == y
etc.

@llogiq llogiq added E-medium Call for participation: Medium difficulty level problem and requires some initial experience. T-AST Type: Requires working with the AST A-lint Area: New lints labels Mar 10, 2016
@oli-obk
Copy link
Contributor

oli-obk commented Jan 30, 2018

This lint exists now, but it does not lint "complex" cases like x == y || foo || x < y or combinations of && and ||.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints E-medium Call for participation: Medium difficulty level problem and requires some initial experience. T-AST Type: Requires working with the AST
Projects
None yet
Development

No branches or pull requests

2 participants