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
/Users/hkurokawa/temp/Test.kt:3:26: Argument should be on a separate line (unless all arguments can fit a single line) (experimental:argument-list-wrapping)
/Users/hkurokawa/temp/Test.kt:4:25: Argument should be on a separate line (unless all arguments can fit a single line) (experimental:argument-list-wrapping)
/Users/hkurokawa/temp/Test.kt:5:20: Argument should be on a separate line (unless all arguments can fit a single line) (experimental:argument-list-wrapping)
Steps to Reproduce
Save the above code as test.kt and run the below command.
ktlint --verbose --experimental ~/temp/test.kt
Your Environment
Version of ktlint used: 0.39.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): command line
Version of Gradle used (if applicable): N/A
Operating System and version: macOS 10.15.6
Link to your project (if it's a public repository): private repository
Remarks
Sometimes I want to use the parameter name as an inline comment at the call site, so that readers don't need to look at the method declaration to understand the parameter's purpose. Kotlin has named argument so this technique is useful only when we are calling Java methods from Kotlin code.
The text was updated successfully, but these errors were encountered:
Expected Behavior
Expect this code not to cause any errors.
Observed Behavior
Steps to Reproduce
Save the above code as
test.kt
and run the below command.Your Environment
Remarks
Sometimes I want to use the parameter name as an inline comment at the call site, so that readers don't need to look at the method declaration to understand the parameter's purpose. Kotlin has named argument so this technique is useful only when we are calling Java methods from Kotlin code.
The text was updated successfully, but these errors were encountered: