avoid_bool_literals_in_conditional_expressions false positives #58067
Labels
customer-google3
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-false-positive
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
If either side of the conditional expression is nullable, the suggested replacement fails.
cannot be replaced with
--we could tighten up the lint to only apply to expressions that we know are not nullable, or we could wait for NNBD which will allow the lint to still fire on more cases.
While I like this lint I don't think it's terribly urgent, so my suggestion is to wait for NNBD.
What do you think, please?
The text was updated successfully, but these errors were encountered: