fleetlint Policy for a fleet of repositories
v0.3
Getting started

lint/go-config

A Go linter is configured strictly

Severitywarning
Tiersall
Stacksgo
Scopeeach
Kindoutcome
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

A Go linter configuration is committed: golangci-lint v2 enabling errcheck, govet, staticcheck, errorlint, gosec, gocognit and funlen at least, or staticcheck together with revive. Another linter setup is added with accept:.

Why

Default linting misses the swallowed errors and oversized functions the baseline bans.

Fix

Add .golangci.yml (version 2) from the Go stack profile.

Agent instruction: Create .golangci.yml with version: “2” and the linters listed in the Go stack profile, with a new-from-rev ratchet.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

See: https://fleetlint.org/stacks/#go


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.