mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.94k stars 204 forks source link

Ktlint 1.1.1 does not have `--android` flag #515

Closed MTRNord closed 8 months ago

MTRNord commented 8 months ago

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)

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