-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-false-negativeIssues related to lint rules that fail to report a problem.Issues related to lint rules that fail to report a problem.
Description
This issue is a thread for discussing and tracking planned fixes for literal_only_boolean_expressions. The goal of this is to identify and resolve all relevant cases that require updating with a single patch.
I will continually edit this post to keep it updated with any key information related to the fix. I will also link the in-progress patch here once I have started it.
These fixes follow a prior minor fix.
Current cases to handle - provided by @bwilkerson:
- adjacent strings when some of the strings aren't constants (false positive)
- list, map, and set literals whose elements are not all constants (false positive)
- dot shorthand expressions that reference constants (false negative)
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-false-negativeIssues related to lint rules that fail to report a problem.Issues related to lint rules that fail to report a problem.