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

linter detects issue with "print" even when kDebugMode is used...and with multiple conditions #5068

Open
corepuncher opened this issue Aug 19, 2024 · 0 comments
Labels
false-positive P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@corepuncher
Copy link

corepuncher commented Aug 19, 2024

Describe the issue
If you use kDebugMode with multiple conditions before a print statement, the linter thinks there is a problem.

To Reproduce
if (kDebugMode && condition2) print('nothing wrong here');

Expected behavior
It should allow multiple conditions alongsize kDebugMode check.

@srawlins srawlins added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P3 A lower priority bug or feature request false-positive labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false-positive P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants