Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Staticcheck

staticcheck.dev

  • Free plan
  • Windows
  • macOS
  • Linux
7.2 Club score Visit staticcheck.dev

What Staticcheck is

Staticcheck is a free Go linter that uses static analysis to find bugs and performance issues, suggest simpler code, and check style. Its more than 150 checks cover correctness, simplifications, style, and quick fixes. The project says the checks aim to produce few false positives, making them suitable for continuous integration without spurious failures. Staticcheck can run from the command line, in CI, or through editors. It integrates with gopls and is part of most major Go editors, where it can identify issues and offer automatic fixes. Projects can configure checks and individual check behavior in TOML files named staticcheck.conf. For CI, the project publishes a GitHub Actions workflow action. Installation options include go install, binaries for common operating systems and CPU architectures, and packages for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, and Scoop; package-manager releases may arrive later. Each release supports the two Go versions most recent when that release was made. Staticcheck is available for Linux, macOS, and Windows.

Who it suits

Staticcheck suits developers maintaining Go projects who want static analysis during development or in CI. It can also suit teams looking for editor integration and configurable checks.

Good to know, and what to watch

  • More than 150 checks cover correctness, style, and simplification.
  • Runs from the command line, in CI, and in editors.
  • Integrates with gopls and major Go editors.
  • Offers configurable checks through TOML files.
  • Available on Linux, macOS, and Windows.
  • Supports only Go projects.
  • Each release supports the two Go versions most recent at release time.
  • Package-manager releases may arrive later than upstream releases.

Free

Free

Free plan

Getting started

  1. Open https://staticcheck.dev/
  2. Install with go install or download a binary release
  3. Alternatively use a package for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, or Scoop
  4. Run Staticcheck from the command line, CI, or an integrated editor
  5. Add staticcheck.conf to configure checks and individual check behavior
  6. Use the published GitHub Actions workflow action for CI

Limits to check

Staticcheck releases support the two Go versions that were most recent when each release was made. Packages from listed package managers may not deliver releases promptly.

The verdict

Staticcheck offers a broad set of Go-focused checks across local development, editors, and CI. Keep its release-specific Go version support and possible package-manager delays in mind when planning updates.

Questions people ask

How much does Staticcheck cost?

Staticcheck is free and open source. Its Free plan is free.

Which operating systems does it support?

Staticcheck supports Linux, macOS, and Windows.

Can it run in continuous integration?

Yes. It can run in CI, and the project publishes a GitHub Actions workflow action.

Does Staticcheck integrate with editors?

Yes. It integrates with gopls and is part of most major Go editors, where it can find bugs and offer automatic fixes.

How can projects configure its checks?

Projects can set checks and individual check behavior in TOML files named staticcheck.conf.

What Go versions are supported?

A release supports the two Go versions that were most recent when that release was made.

What the maker publishes

Check categories
Its checks cover correctness, code simplifications, style, and quick fixes. source
Checks
The site describes more than 150 checks designed to be fast, precise, and useful. source
Configuration
Projects can configure checks and individual check behavior in TOML files named staticcheck.conf. source
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. source
False positives
The site says Staticcheck focuses on checks that produce few to no false positives and is suitable for CI without spurious failures. source
GitHub Actions
The project publishes its own GitHub Actions workflow action for running Staticcheck in CI. source
Go version support
A Staticcheck release supports the two Go versions that were most recent when that release was made. source
Headquarters
Marl, Germany source
Installation
The site documents installation with go install and binary releases for common operating systems and CPU architectures. source
Package managers
The site lists packages for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, and Scoop, and notes they may not deliver releases promptly. source
Purpose
Staticcheck is a Go linter that uses static analysis to find bugs and performance issues, suggest simplifications, and enforce style rules. source
Target users
The site presents Staticcheck for Go projects and describes using it alongside go vet in development or CI. source
Usage
Staticcheck can be run from the command line, in CI, and directly from editors. source

Checked against the maker's pages on 8 Oct 2026.