J3fftw1 / LiteXpansion

GNU General Public License v3.0
1 stars 0 forks source link

Added "Fix Imports" workflow (and cleaned up imports) #92

Closed TheBusyBiscuit closed 3 years ago

TheBusyBiscuit commented 3 years ago

Short Description

This adds an imports fix workflow (according to the Google Java Formatting Standard) which formats imports and removes any unused ones. Through testing purposes this also cleans up imports, you are welcome ;)

Checklist

J3fftw1 commented 3 years ago

Okay i love this feature are there any other java formatting work flows like auto message when crossing 100char line and other checks around java formatting style

TheBusyBiscuit commented 3 years ago

The action simply runs the "Google Java Formatter" jar from Google itself. It can do full auto-formatting completely inline with the standard. However that may not always be desirable, hence why I only left it in "fix-imports-only" for now. But you can also check the args here: https://github.com/axel-op/googlejavaformat-action#args