Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split ExplicitItLambdaParameter in two #7181

Open
BraisGabin opened this issue Apr 13, 2024 · 0 comments
Open

Split ExplicitItLambdaParameter in two #7181

BraisGabin opened this issue Apr 13, 2024 · 0 comments
Labels

Comments

@BraisGabin
Copy link
Member

Expected Behavior of the rule

ExplicitItLambdaParameter has two different responsabilities. One that it is not redundant on lambda with just one parameter and forbid parameters called it on lambda that have more than one parameter.

I think that we should split those two responsabilities in two different rules

Context

I like a rule that flags unnecessary it declarations but I want to be able to use it as a name for my lambda. An example is forEachIndexed { index, it-> }. If I'm OK with using it on forEach the indexed shouldn't change that.

For that reason I want to split this rule. To enable one and disable the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant