Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ktlint 1.1.1 does not have --android flag #515

Closed
MTRNord opened this issue Jan 20, 2024 · 0 comments · Fixed by #516
Closed

Ktlint 1.1.1 does not have --android flag #515

MTRNord opened this issue Jan 20, 2024 · 0 comments · Fixed by #516

Comments

@MTRNord
Copy link
Contributor

MTRNord commented Jan 20, 2024

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 pinterest/ktlint#2411 to use editorconfig instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant