MRT3216 / MRT3216-2023-ChargedUp

1 stars 0 forks source link

Implement Code Formatter #8

Closed CSGuy57 closed 1 year ago

CSGuy57 commented 1 year ago

This would automatically format code when committed (you know how Lande hates unformatted code). Use the guidelines here: https://docs.wpilib.org/en/stable/docs/software/advanced-gradlerio/code-formatting.html

lukasmay commented 1 year ago

Instructions for adding spotless to GitHub actions as a CI: Link

Here are all of the format options: Link

Here are all the gradlew commands: Link

lukasmay commented 1 year ago

Change the .bat file to run the plugin in the build.gradle. This could be done by changing the workflow file to run something else.

This doesn't conflict with my default auto format in Visual Studio code

CSGuy57 commented 1 year ago

Good try. Caused issues with autoformatting in VSCode. May revisit later.