bazelbuild / rules_kotlin

Bazel rules for Kotlin
Apache License 2.0
331 stars 206 forks source link

Value classes not supported by ktlint? #813

Open mattdornfeld opened 2 years ago

mattdornfeld commented 2 years ago

I ran into an issue using ktlint to format a file containing a value class. I opened an issue on the ktlint repo. I'm also crossposting here in case the fix involves rules_kotlin

https://github.com/pinterest/ktlint/issues/1577

restingbull commented 2 years ago

ktlint needs an update.

paul-dingemans commented 2 years ago

ktlint needs an update.

As mentioned here the problem is not reproducable in KtLint. What version of Kotlin is used to compile the module containing the rule that is causing the problem?

restingbull commented 2 years ago

Ah, it appears that --experimental is not passable to the invocation.

restingbull commented 2 years ago

AI: Add android and experimental to ktlint_config.

restingbull commented 2 years ago

AI: Modify ktlint to use a toolchain.