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
ktlint fails with the following two violations: Argument should be on a separate line (unless all arguments can fit a single line) Missing newline before ")"
No violations are reported if there is no max_line_length.
Steps to Reproduce
This can be recreated using the following test:
@Test
funtestLambdaArgumentsAreIgnored() {
assertThat(
ArgumentListWrappingRule().lint(
""" abstract class A(init: String.() -> Int) class B : A({ toInt() toInt() toInt() toInt() toInt() toInt() }) fun test(a: Any, b: (Any) -> Any) { test(a = "1", b = { it.toString() }) }""".trimIndent(),
userData =mapOf("max_line_length" to "80")
)
).isEmpty()
}
Expected Behavior
ktlint should not report the following violation.
Observed Behavior
Given the following class and a
max_line_length
of80
ktlint fails with the following two violations:
Argument should be on a separate line (unless all arguments can fit a single line)
Missing newline before ")"
No violations are reported if there is no
max_line_length
.Steps to Reproduce
This can be recreated using the following test:
master...jamespfaulkner:false-reporting
Your Environment
The text was updated successfully, but these errors were encountered: