You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ Is your feature request related to a problem? Please describe
We should create tasks that format the gradle.kts files (like ktfmtFormatKotlinScript and ktfmtCheckKotlinScript) and hook them inside the ktfmtFormat and ktfmtCheck tasks.
💡 Describe the solution you'd like
Could be implemented in a number of ways. Happy to discuss any approach
🤚 Do you want to develop this feature yourself?
Yes
No
This is up for grab :)
The text was updated successfully, but these errors were encountered:
I think this is a great idea.
One easy way to implement this, would be to take the project directory and only collect the top level .kts. files. That would probably solve most use cases.
If we searched recursively for all .kts files, it would be a bit weird for nested multi-module projects. Because the parent project would also format the gradle scripts of subprojects. What do you think?
If we searched recursively for all .kts files, it would be a bit weird for nested multi-module projects. Because the parent project would also format the gradle scripts of subprojects. What do you think?
Yeah that's a good point, so we get the top level .gradle.kts and .settings.kts file and we're good to go 👍 Each project will inspect its own kts file
We should create tasks that format the gradle.kts files (like
ktfmtFormatKotlinScript
andktfmtCheckKotlinScript
) and hook them inside thektfmtFormat
andktfmtCheck
tasks.💡 Describe the solution you'd like
Could be implemented in a number of ways. Happy to discuss any approach
🤚 Do you want to develop this feature yourself?
This is up for grab :)
The text was updated successfully, but these errors were encountered: