for kts files?
Are the spotless docs wrong/out of date? Or should the ktfmt website show the proper api for applying to a kts file?
(this is a super small detail but as someone that just felt like they jumped through a bunch of hoops to get this working with kts build files on Android, I want to make sure the docs are up to date) 😄
j
Javier
05/09/2021, 4:13 AM
Both are the same. If for some reason the accessor is not generated, you have to use configure, if the accessor is generated, you can use it or configure.
c
Colton Idle
05/09/2021, 4:58 PM
Interesting...
j
Javier
05/09/2021, 6:09 PM
A tip, kts files has an easy way to access to the source via control + click or CMD + click. Probably if you clicks on the accessor, it will show a ext function which is using the SpotlessExtension under the hood