Skip to content

Commit

Permalink
Update ktlint to 1.0.0
Browse files Browse the repository at this point in the history
Due to the reasons exposed in pinterest/ktlint#2044, this is not trivial - we need to rewrite the fixes manually or remove them altogether. Not being able to rely on the embedded kotlin compiler plugin for this is less than ideal, I wanted to stay away from ASTNode as much as possible :(

TODO:
- [x] Fix spotless version
- [ ] Fix ViewModelInjection autofix
- [ ] Fix PreviewPublic autofix
  • Loading branch information
mrmans0n committed Sep 9, 2023
1 parent 621ac3f commit 2b4caa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ subprojects {
spotless {
kotlin {
target "**/*.kt"
ktlint(libs.versions.ktlint.get())
// ktlint(libs.versions.ktlint.get())
ktlint("0.50.0")

licenseHeaderFile rootProject.file('spotless/copyright.txt')
}
groovyGradle {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.9.10"
ktlint = "0.50.0"
ktlint = "1.0.0"
detekt = "1.23.1"
junit = "5.10.0"

Expand Down

0 comments on commit 2b4caa1

Please sign in to comment.