Staticcheck
Staticcheck is a free Go linter that applies static analysis to detect bugs and performance issues, recommend simpler code, and enforce style rules.
What Staticcheck is
Staticcheck is a free Go linter that applies static analysis to detect bugs and performance issues, recommend simpler code, and enforce style rules. More than 150 checks cover correctness, simplification, style, and quick fixes. The project emphasizes checks designed to produce few or no false positives, making Staticcheck suitable for continuous integration without spurious failures. It runs from the command line, in CI pipelines, and inside editors. Integration with gopls and most major Go editors lets it report problems and offer automatic fixes. Projects can control checks and individual behavior through TOML files named staticcheck.conf. A published GitHub Actions workflow runs it in CI. Installation options include go install, binary releases for common operating systems and CPU architectures, plus packages for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, and Scoop; package-manager releases may lag. Each release supports the two Go versions most recent when that release was made. Staticcheck runs on Linux, macOS, and Windows and is presented for use alongside go vet during development or CI.
Good
- More than 150 checks across key categories
- Designed to minimize false positives
- Works in editors, command line, and CI
- GitHub Actions workflow is available
- Completely free and open source
Watch out
- Supports only Go projects
- Package-manager releases may lag
- Each release supports only two recent Go versions
Who it suits
It suits Go developers and teams that want automated correctness, style, and simplification checks in editors or CI. Projects needing configurable checks and automatic fixes can use its editor and configuration integrations.
Verdict
Staticcheck offers broad Go analysis with editor, command-line, and CI workflows, plus configurable checks and automatic fixes. Its free availability is useful for teams, while Go-only scope and version-support limits should guide adoption.
Plans and prices
From Staticcheck's own pricing page, checked 8 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Free | Free | Open source · completely free of charge |
The facts
Each one read from Staticcheck's own pages, with the date it was checked.
What it does
- Check categories
- Its checks cover correctness, code simplifications, style, and quick fixes.checked 8 Oct 2026
- Checks
- The site describes more than 150 checks designed to be fast, precise, and useful.checked 8 Oct 2026
- Configuration
- Projects can configure checks and individual check behavior in TOML files named staticcheck.conf.checked 8 Oct 2026
- Editor integration
- The site says Staticcheck is integrated with gopls and is part of most major Go editors, where it finds bugs and offers automatic fixes.checked 8 Oct 2026
- False positives
- The site says Staticcheck focuses on checks that produce few to no false positives and is suitable for CI without spurious failures.checked 8 Oct 2026
- GitHub Actions
- The project publishes its own GitHub Actions workflow action for running Staticcheck in CI.checked 8 Oct 2026
- Go version support
- A Staticcheck release supports the two Go versions that were most recent when that release was made.checked 8 Oct 2026
- Installation
- The site documents installation with go install and binary releases for common operating systems and CPU architectures.checked 8 Oct 2026
- Package managers
- The site lists packages for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, and Scoop, and notes they may not deliver releases promptly.checked 8 Oct 2026
- Purpose
- Staticcheck is a Go linter that uses static analysis to find bugs and performance issues, suggest simplifications, and enforce style rules.checked 8 Oct 2026
- Target users
- The site presents Staticcheck for Go projects and describes using it alongside go vet in development or CI.checked 8 Oct 2026
- Usage
- Staticcheck can be run from the command line, in CI, and directly from editors.checked 8 Oct 2026
The company
- Headquarters
- Marl, Germanychecked 28 Sep 2026
Alternatives to Staticcheck
- 1

Cppcheck
Free planOpen sourceLinuxmacOSSelf-hostedWindows7.4Free plan - 2
JSHint
Free planOpen sourceWebAPIExtensionLinux7.4Free plan - 3
Flake8
Free planOpen sourceAPILinuxmacOSSelf-hosted7.3Free plan - 4
PMD
Free planLinuxmacOSSelf-hostedWindows6.8Free plan - 5
SwiftLint
Free planLinuxmacOSWindows6.6Free plan - 6

Ruff
Free planWebLinuxmacOSSelf-hosted6.5Free plan
