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

lint/configured/go

A linter is configured

Implements lint/configured for go.

Severitywarning
Tiers1, 2
Stacksgo
Scopeeach
Kindoutcome
Sourcelibrary v0.7.0
Selected byfleetlint-recommended@v0.7.0

Requirement

A Go linter configuration is committed in the module or a parent directory: golangci-lint v2 (version: "2"), 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; fleetlint fix --apply writes one.

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

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

A finding of this rule points at .golangci.yml.

Sources


Generated by fleetlint docs from catalog v0.7.0.