format/configured/go
A formatter is configured
Implements format/configured for go.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | go |
| Scope | each |
| Kind | outcome |
| Source | library v0.2.0 |
| Selected by | fleetlint-recommended@v0.2.0 |
Requirement
golangci-lint v2 enables formatters: in its configuration, or gofmt, gofumpt, goimports or golangci-lint fmt runs in a hook, the task runner or CI. Another formatter is added with accept:.
Why
Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.
Fix
Enable formatters (gofumpt, goimports) in .golangci.yml and run golangci-lint fmt from the fmt target and a hook.
Agent instruction: Add formatters: enable: [gofumpt, goimports] to .golangci.yml and a golangci-lint fmt hook; reformat the code base in a separate commit.
See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#go
Generated by fleetlint docs from catalog v0.2.0.