The nvim-lint ktlint seems to use the --android cmd line argument. However this seems to not exist any,ore and fails with:
Exception in thread "main" picocli.CommandLine$UnmatchedArgumentException: Unknown option: '--android'
at picocli.CommandLine$Interpreter.validateConstraints(CommandLine.java:13662)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13614)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13559)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13454)
at picocli.CommandLine.parseArgs(CommandLine.java:1552)
at com.pinterest.ktlint.Main.main(Main.kt:24)
The nvim-lint ktlint seems to use the
--android
cmd line argument. However this seems to not exist any,ore and fails with:https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md#0491---2023-05-12 indicates it got replaced with
--code-style=android_studio
which itself got removed in https://github.com/pinterest/ktlint/pull/2411 to use editorconfig instead