GS/BS
← Standards directory
Code quality

golangci-lint.

Run one Go lint profile in CI

Pin the aggregate linter and commit the enabled checks. Run it across the module using the same build tags and Go version as the project.

Go

Community rubric · v1

The evidence

Evidence coverage2 / 8
2 supported · 6 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can two readers identify the same obligation? Contribute evidence ↗

  • Measurement

    Verified

    The run command reports issues from the enabled linters and documents --issues-exit-code, which defaults to 1.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Verified

    The CI guide recommends pinning the linter version and demonstrates integration into CI jobs; issues from the configured linters can fail the job.

    Cited source ↗
  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Unknown

    No reviewed evidence is recorded for this dimension.

    Has another team put it to work? Contribute evidence ↗

  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

golangci-lint run

Agent prompt

Use golangci-lint in this repository to meet this standard: Run one Go lint profile in CI. Pin the aggregate linter and commit the enabled checks. Run it across the module using the same build tags and Go version as the project. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

golangci-lint documentation ↗