You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right, this should not be flagged by detekt. But apply is not necessary in your specific case because putExtra implements a fluent api.
I know very little about how far can we go with type resolution but maybe we can even detect the fluent apis (methods that returns this) and flag the uses of apply there.
Expected Behavior
// Used as an assignment
//Used as the last statement of a block inside lambda.
Both cases should not report an error as the receiver of the apply is used.
Observed Behavior
Both cases have an error reported.
Context
I am applying detekt to my company's codebase and find these unexpected behaviors.
Your Environment
The text was updated successfully, but these errors were encountered: