I'm using google-java-format to format Java code according to Google Java Style. However, I only find documentation and examples showing how to format one file using the CLI.
Is there a built-in way to format an entire Java project directly using the CLI (without looping using a shell script or something else)?
After a quick read of the google-java-format documentation, it is intended to function one file at a time or on a group of files, each listed on the command line.
There appears to be plugins for intelliJ and Eclipse.
If you need to format every file in your project, you will need to do one of the following: