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

Add inspection on maximum number of inline lambdas to NewlinesRule #1271

Open
kgevorkyan opened this issue Apr 14, 2022 · 0 comments
Open

Add inspection on maximum number of inline lambdas to NewlinesRule #1271

kgevorkyan opened this issue Apr 14, 2022 · 0 comments
Labels
enhancement New feature or request refactoring

Comments

@kgevorkyan
Copy link
Member

Besides of the long length, line could be also complex because of the number of inline lambdas in it, despite the fact, that by itself, it could not exceed the maximum line length limit

So, lines like this

val notFoundTests = testFiles.filter { testFile -> testFile !in foundTests.map { foundTest -> foundTest.test.toString() } }

could be more readable in this form

val notFoundTests = testFiles.filter { testFile ->
    testFile !in foundTests.map { foundTest ->
        foundTest.test.toString()
    }
}
@kgevorkyan kgevorkyan added enhancement New feature or request refactoring labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring
Projects
None yet
Development

No branches or pull requests

1 participant