google / buzzer

Apache License 2.0
429 stars 32 forks source link

Add code linter github action, a script that helps format the code base and formatting of the codebase using that script #16

Closed thatjiaozi closed 1 year ago

thatjiaozi commented 1 year ago

This pull request includes the following changes:

  1. Create a github workflow that ensures code is formatted correctly before allowing merge, this uses the following actions:
    • jidicula/clang-format-action@v4.11.0
    • Jerome1337/gofmt-action@v1.0.5
    • jbajic/buildifier@v1
  2. Create a bash script that allows formatting the codebase more easily, as well as instructions on how to install the formatting dependencies (clang-format, gofmt, buildifier)
  3. Run the Formatting script in the codebase to resolve formatting issues.