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
SC2015 inconsistent behavior #2976
Comments
This inconsistency was intentionally introduced in d603ee1 to reduce the noise of Somewhat unrelated, the suggestion shouldn't trigger when B is a test, and this is added in 76ff702. |
@koalaman Oh 76ff702 seems definitely related - it actually solves my main issue 🤩 Thanks! So a little background, in case someone else stumbles upon the same: I got here in the first place because of simple initial variable checks in a script, such as:
This used to trigger a SC2015, so I dug into it and noticed that it doesn't trigger with a simpler |
For bugs
Here's a snippet or screenshot that shows the problem:
This triggers an error:
While this doesn't:
Here's what I wanted or expected to see:
Consistency.
The text was updated successfully, but these errors were encountered: