ivoa / vo-dml

VO-DML tooling and documents.
Creative Commons Attribution Share Alike 4.0 International
1 stars 1 forks source link

integrate spotless to prettify the generated code #53

Open pahjbo opened 1 month ago

pahjbo commented 1 month ago

As a slightly unfortunate side effect of the code being generated via XSLT it is sometimes rather difficult to ensure that it is nicely formatted - the proposal is to use spotless https://github.com/diffplug/spotless to unify the format of the generated code. The gradle spotless plugin should be automatically included and configured by the VO-DML plugin

pahjbo commented 1 month ago

this is done "longhand" in the sample project gradle build https://github.com/ivoa/vo-dml/blob/ff522ffb9c472d7beea41d9f98d99346217be506/tools/gradletooling/sample/build.gradle.kts#L63