Golangci-lint orchestrates many Go static analyzers in one run with shared caching. It reads YAML settings and fits local editors as well as CI pipelines.
Overview
Golangci-lint is a command-line runner that executes numerous Go linters together instead of installing and invoking each tool separately. It parallelizes work, reuses the Go build cache, and stores analysis results to shorten repeat runs.
Default presets aim to limit noisy false positives while still covering common style, bug, and security checks. Users can tune rules through a YAML configuration file meant to stay readable in version control.
Output can be formatted for humans with color and source line context, or emitted as JSON, tab-separated text, HTML, Checkstyle, Code Climate, JUnit XML, TeamCity, or SARIF for downstream systems.
Editor and automation integrations include VS Code, Sublime Text, GoLand, GNU Emacs, Vim, and GitHub Actions, so the same configuration can gate merges and assist day-to-day editing.
Key features
- Runs many linters without separate installs
- Parallel execution with build and result caching
- YAML configuration file
- Multiple report output formats
- IDE and GitHub Actions integrations
- Tuned default linter presets
- Colored text output with source lines
Use cases
- Unified lint step in Go CI jobs
- Local pre-commit quality checks
- Enforcing team-wide Go style rules
- Publishing SARIF or Checkstyle to review tools