FREEDOM251

Freedom251 › Linters

Staticcheck

Free plan LinuxMacWindows

Visit Staticcheck Alternatives Pricing

Staticcheck's own site

What Staticcheck is

Staticcheck is a free, open-source Go linter for finding defects and improving code quality through static analysis. It examines Go projects for bugs and performance problems, recommends simpler code, and checks style. More than 150 checks are grouped around correctness, simplification, style, and quick fixes. Staticcheck emphasizes checks intended to create few or no false positives, making it suitable for continuous-integration runs where spurious failures are a concern. Developers can invoke it from the command line, add it to CI, or use it through an editor. The project provides a GitHub Actions workflow action for CI, and editor support is available through gopls and most major Go editors, including automatic fixes. Teams can control checks and individual check behavior in TOML files named staticcheck.conf. Installation is documented with go install and binary releases for common operating systems and CPU architectures. Packages are listed for Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, and Scoop. Staticcheck runs on Linux, macOS, and Windows, and each release supports the two Go versions most recent when that release was made.

Who it suits

Staticcheck suits developers and teams maintaining Go projects who want automated correctness, performance, simplification, and style checks. It fits workflows that use command-line tools, editors, CI, or go vet together with another analyzer.

What it does well

  • Free and open-source
  • More than 150 Go checks
  • Designed to limit false positives
  • Editor integration with automatic fixes
  • GitHub Actions support for CI
  • Configurable through staticcheck.conf

What to know first

  • Supports only Go projects
  • Each release supports two recent Go versions
  • Package-manager releases may lag behind
  • Runs on Linux, macOS, and Windows only

Limits

Each Staticcheck release supports the two Go versions that were most recent when that release was made. Packages offered by distribution and package managers may not arrive as promptly as upstream releases.

Plans

PlanBilled and limitsPrice
FreeOpen source · completely free of chargeFree

As staticcheck.dev lists them, read 8 Oct 2026. The maker's own page has the final word.

Getting started

  1. Install with go install or choose a binary release
  2. Use a package from Arch Linux, Debian, Fedora, Homebrew, MacPorts, NixOS, or Scoop
  3. Run Staticcheck from the command line or connect it to an editor
  4. Add the published GitHub Actions action to a CI workflow
  5. Create staticcheck.conf to adjust checks and individual behavior

Verdict

Pick Staticcheck if you need a no-cost Go analyzer covering bugs, performance, simplification, style, and quick fixes. Its editor, command-line, and CI paths make it adaptable, with configuration available in TOML. Look elsewhere if you need a linter for languages other than Go or support outside its listed platforms.

Questions

What does Staticcheck check?

Its checks cover correctness, code simplifications, style, and quick fixes, including bugs and performance issues.

Is Staticcheck free?

Yes. The Free plan costs nothing and is open source and completely free of charge.

Where can I run it?

Staticcheck runs on Linux, macOS, and Windows, from the command line, in CI, and through editors.

Does it support CI?

Yes. The project publishes a GitHub Actions workflow action, and its checks are designed to avoid spurious CI failures.

How can projects configure it?

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

Which Go versions are supported?

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

Facts from Staticcheck's own pages

Check categories
Its checks cover correctness, code simplifications, style, and quick fixes. · staticcheck.dev, 8 Oct 2026
Checks
The site describes more than 150 checks designed to be fast, precise, and useful. · staticcheck.dev, 8 Oct 2026
Configuration
Projects can configure checks and individual check behavior in TOML files named staticcheck.conf. · staticcheck.dev, 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. · staticcheck.dev, 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. · staticcheck.dev, 8 Oct 2026
GitHub Actions
The project publishes its own GitHub Actions workflow action for running Staticcheck in CI. · staticcheck.dev, 8 Oct 2026
Go version support
A Staticcheck release supports the two Go versions that were most recent when that release was made. · staticcheck.dev, 8 Oct 2026
Headquarters
Marl, Germany · staticcheck.dev, 28 Sept 2026
Installation
The site documents installation with go install and binary releases for common operating systems and CPU architectures. · staticcheck.dev, 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. · staticcheck.dev, 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. · staticcheck.dev, 8 Oct 2026
Target users
The site presents Staticcheck for Go projects and describes using it alongside go vet in development or CI. · staticcheck.dev, 8 Oct 2026
Usage
Staticcheck can be run from the command line, in CI, and directly from editors. · staticcheck.dev, 8 Oct 2026

Where Staticcheck stands on Freedom251

Look at these too