cascade_invocations false positives #58043
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)
cascade_invocations
currently fires for:But it's impossible to use the cascade operator here because of the reference to
subscriptions
inside the lambda.I see two paths forward:
#57147 don't fire when there is a reference like this
#57148 simpler: never fire when the first line is a variable declaration
My personal preference is for #57148; I think splitting the declaration from operations on the variable is often beneficial to readability, and should be treated as a special case.
WDYT, please?
Thanks!
The text was updated successfully, but these errors were encountered: