cascade_invocations false positives #1797
Labels
customer-google3
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:
#1 don't fire when there is a reference like this
#2 simpler: never fire when the first line is a variable declaration
My personal preference is for #2; 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: