smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.76k stars 206 forks source link

Add Smithy Formatter To Gradle Tasks #2231

Open 0xjjoyy opened 5 months ago

0xjjoyy commented 5 months ago

When contributing it's easier if there is a gradle task that can take care of formatting the Smithy files according to the project's desired format, such as empty line at EOF.

Doing a clean checkout and running the gradle tasks doesn't show any Smithy file formatter

./gradlew tasks

Please add the Smithy File formatter plugin to this project so it'll be easier and faster to make pull requests and contributions.

JordonPhillips commented 4 months ago

The gradle plugin already runs a formatter automatically.... or it's supposed to. Specifically the task is smithyFormat. It doesn't seem to be doing much though....

JordonPhillips commented 4 months ago

Ah it seems we just have it disabled on a number of projects