We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Given that the max-line-length is enabled and is exceeded, then wrap the content of the lambda expression in a call expression.
require(someBooleanExpression) { "some longggggggggggggggggggggg message" }
should be formatted as:
In case the lambda argument has a value parameter:
val foo = listOf("a", "b", "c") .map { element -> element.toUppercase().repeat(5) }
Whenever methods are chained on same line
val foo = listOf("a", "b", "c").filter { it.isEligble() }.map { element -> element.toUppercase().repeat(5) }
the chained methods should first be wrapped (responsibility of different rule) to something like
val foo = listOf("a", "b", "c") .filter { it.isEligble() } .map { element -> element.toUppercase().repeat(5) }
and only when necessary be further wrapped to:
The text was updated successfully, but these errors were encountered:
Solved by #2137
Sorry, something went wrong.
No branches or pull requests
Given that the max-line-length is enabled and is exceeded, then wrap the content of the lambda expression in a call expression.
Example 1
should be formatted as:
Example 2
In case the lambda argument has a value parameter:
should be formatted as:
Example 3
Whenever methods are chained on same line
the chained methods should first be wrapped (responsibility of different rule) to something like
and only when necessary be further wrapped to:
The text was updated successfully, but these errors were encountered: