-
Notifications
You must be signed in to change notification settings - Fork 39
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 0.40.0 has changed mechanism for file path loading, we face errors when .editorconfig is missing #616
Comments
Similar bugs are reported in ktlint already: pinterest/ktlint#997 |
They have solved this on their side, once ktlint 0.41 is out is should be safe for us to upgrade. |
For ktlint 0.41, different configuration is required for gradle dependency: pinterest/ktlint#1114 |
But this configuration also results in the following warning:
|
@petertrr what do you think? Are these warnings related to ktlint? #615 #816 pinterest/ktlint#1133 |
It looks like it is a bug in Kotlin compiler: https://youtrack.jetbrains.com/issue/KT-43520 |
@dimsuz this warning indeed originates from ktlint, or even from kotlin compiler. It has been there in previous versions too, and it is indeed a warning, i.e. ktlint still works as expected, until this will be deprecated in JVM. |
I see, I'll star it, thanks! |
### What's done: * Updates ktlint.version from 0.39.0 to 0.43.0 * Increased minimum required gradle version to 5.3 * Fix how file path is passed to Params in diktat-maven-plugin * gradle plugin with absolute paths doesn' work on Windows and Mac (windows - because of short directory names like `C:\Users\MYUSER~1\...` that can't be properly resolved in Java) - so **forbid** absolute path in *gradle plugin* * Disable standard ruleset in CLI test * Add tests for CLI execution with absolute paths Closes #616 Co-authored-by: Peter Trifanov <peter.trifanov@mail.ru>
We can't merge #615 now, because file_path is not present in user data. Ktlint now uses editorconfig (
EditorConfigLoader.loadPropertiesForFile
), we need to workaround it somehow.The text was updated successfully, but these errors were encountered: