We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
0.47(.1) seems to have broken .editorconfig support when using --stdin
class Foo { fun foo() {} }
[*.kt] indent_size = 2
With 0.47.1, the .editorconfig file is not honored. It doesn't matter whether it's specified explicitly or not
> cat code.kt | ktlint-0.47.1 --stdin --editorconfig=.editorconfig 8:54:57.762 [main] INFO com.pinterest.ktlint.internal.KtlintCommandLine - Enable default patterns [**/*.kt, **/*.kts] <stdin>:2:1: Unexpected indentation (0) (should be 4) (indent)
0.46.1 Works as expected:
> cat code.kt | ktlint-0.46.1 --stdin --editorconfig=.editorconfig <stdin>:2:1: Unexpected indentation (0) (should be 2) (indent)
The text was updated successfully, but these errors were encountered:
Read properties from editorconfig when running CLI with options "--st…
7d551cd
…din --editorconfig=/path/to/editorconfig" Closes pinterest#1651
You're right. This has gone wrong in 0.47.x.
Sorry, something went wrong.
Read editorconfig when running CLI with --stdin (#1655)
09ea546
* Read properties from editorconfig when running CLI with options "--stdin --editorconfig=/path/to/editorconfig" Closes #1651
Successfully merging a pull request may close this issue.
0.47(.1) seems to have broken .editorconfig support when using --stdin
With 0.47.1, the .editorconfig file is not honored. It doesn't matter whether it's specified explicitly or not
0.46.1 Works as expected:
The text was updated successfully, but these errors were encountered: