Ktlint `1.0.0` has been released. Note that the ma...
# ktlint
p
Ktlint
1.0.0
has been released. Note that the maven coordinates have been changed. Be sure to update them to get the latest changes. The default code style is changed to
ktlint_official
. 22 experimental rules have been promoted to standard rules. Other details can be found in the release notes. As always, your feedback is appreciated.
🎉 8
p
I am not sure how long it takes before they show up in Maven. So lets give it a couple of hours.
👍 1
1
j
The GAV coordinate changes are likely the most annoying part of this change. It means Ktlint-Gradle end-users won't be able to use the latest version of Ktlint until we update our internals. Not because the API surface has changed, but because the GAV coordinates changed
p
Artifacts are available at sonatype. I expect mirrors to follow soonish. https://central.sonatype.com/search?q=ktlint&sort=published
gratitude thank you 1
k
Looks like the ktlint-cli also doesn't include the base reporter code: java.lang.ClassNotFoundException: org.slf4j.spi.LoggingEventAware We used to just include the ktlint artifact in our convention plugin. I tried adding reporter-core, plain, checkstyle and still get this error. Anyone find out where it's supposed to come from?
ahh...it needs this now: slf4j-api = { module = "org.slf4j:slf4j-api", version = "2.0.9" }
"--android" also has been removed as a param (just mentioning changes in case it helps anyone else)
p
Is it on purpose that ktlint now wants to name all composables lower case?
p
Can you be more specific and provide an example?
1
p
Composey.kt
./ktlint Composey.kt
Copy code
Composey.kt:7:12: Function name should start with a lowercase letter (except factory methods) and use camel case (standard:function-naming)

Summary error count (descending) by rule:
  standard:function-naming: 1