-
Notifications
You must be signed in to change notification settings - Fork 455
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
Spotless doesn't work with ktlint 0.48.0 #1430
Comments
PR: #1432 |
Fixed in |
With these changes plugin doesn't work for ktlint I've tried |
Could you please elaborate on how it doesn't work? |
Thanks for reporting. The version switch is here, this maybe has a bug for spotless/lib/src/ktlint/java/com/diffplug/spotless/glue/ktlint/KtlintFormatterFunc.java Lines 44 to 51 in 86404f1
We should probably extend BadSemver to handle the
example usage
I'm also tempted for Spotless to just drop support for all versions of KtLint except for the most recent to have a breaking change in its API. The maintenance load for this one formatter is relatively high... |
Gradle defines semver wokring as expected only for major version above 0 (breaking changes reflected in major version). When major is 0, minor version reflects breaking changes. |
I was trying to upgrade my project and bumped into another issue: |
If you are submitting a bug, please include the following:
This is stack trace:
The text was updated successfully, but these errors were encountered: