Add golangci-lint config by JamieMagee · Pull Request #562 · dependabot/cli (original) (raw)

Adds a .golangci.yml (v2 format) to give the repo a consistent linter setup.

The config uses the standard default set (errcheck, govet, ineffassign, staticcheck, unused) and turns on a few extras that catch real bugs without being too noisy:

We already have golangci-lint in the Brewfile but no config, so everyone either runs different linters or none at all. This gets us to a shared baseline.

There are ~55 existing findings (mostly errcheck). Fixing those and wiring this into CI are separate follow-ups.

Closes #561