You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR solves manatee-project#17
Add an Action to enforce Go code formatting using `gofmt` and block
unformatted code. This PR intentionally excludes lint since it requires
external dependencies. It also intentionally doesn't auto-commit
formatted code on push, as preferences vary.
#### Changes
- **Workflow**: `lint.yaml` checks formatting using `gofmt`. Named
"lint.yaml" instead of "check-format.yaml" because it's meant to be
extended in the future.
#### Future Improvements
1. Consider other lint options such as line length, typo, and
case-consistency.
2. Consider auto-committing format/lint fixes after making a PR.
#### Usage
- **Locally**:
- Run `bazelisk run @go_sdk//:bin/gofmt -- -w .`
- **CI/CD**:
- Runs on `pull_request`.
0 commit comments