Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.
First of all, add a .licenserc.yaml in the root of your project, for Apache Software Foundation projects, the following configuration should be enough. Note: The full configurations can be found in ...