rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Value classes not supported by ktlint?

Open mattdornfeld opened this issue 3 years ago • 5 comments

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

mattdornfeld avatar Aug 07 '22 19:08 mattdornfeld

ktlint needs an update.

restingbull avatar Aug 12 '22 20:08 restingbull

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?

paul-dingemans avatar Aug 16 '22 18:08 paul-dingemans

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

restingbull avatar Aug 19 '22 20:08 restingbull

AI: Add android and experimental to ktlint_config.

restingbull avatar Aug 19 '22 20:08 restingbull

AI: Modify ktlint to use a toolchain.

restingbull avatar Aug 19 '22 20:08 restingbull