macOS
brew install go-criticlocal Homebrew formula metadata
sudo port install go-criticMacPorts ports tree · devel/go-critic/Portfile · source: api.github.com
brew
Opinionated Go source code linter. Version 0.14.4 via Homebrew; verified 2026-06-25.
install
brew install go-criticlocal Homebrew formula metadata
sudo port install go-criticMacPorts ports tree · devel/go-critic/Portfile · source: api.github.com
nix profile install nixpkgs#go-criticnixpkgs package indexes · pkgs/by-name/go/go-critic/package.nix · source: api.github.com
overview
Opinionated Go source code linter
history
go-critic is an opinionated static-analysis linter for Go source code. It collects diagnostics, style checks, performance checks, and experimental rules that are often missing from smaller, single-purpose Go linters.
The go-critic repository was created in 2018 and the project was announced that year as both a linter and a sandbox for prototyping static-analysis ideas. Its documentation describes project goals around providing useful checks, proving check implementations before proposing them elsewhere, and keeping useful checks that lack a better home.
go-critic became part of the broader Go linting ecosystem through direct CLI use and through golangci-lint, whose go-critic entry exposes it as `gocritic`. The repository README tells most users that using go-critic under golangci-lint is enough, reflecting its role as a specialized checker set inside larger lint pipelines.
Practitioners run `go-critic check` against packages, directories, or files, enabling and disabling individual checks or tag groups such as diagnostic, style, performance, experimental, opinionated, and security. The CLI also includes `doc` for checker documentation and checker-specific parameters, which makes it useful both as a standalone audit tool and as a source of extra rules in CI.
For package catalogs, go-critic represents the Go ecosystem's preference for composable command-line analyzers. It can be installed as a small binary, run directly, or consumed by a linter runner, which lets distributions package it without owning editor or CI integration logic.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gocritic | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/go-critic/go-critic
install metadata
| Package key | brew:go-critic |
|---|---|
| Version | 0.14.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/go-critic |
| Homepage | https://go-critic.com |
| Repository | https://github.com/go-critic/go-critic |
| Upstream docs | https://go-critic.com/ |
| License | MIT |
| Source archive | https://github.com/go-critic/go-critic/archive/refs/tags/v0.14.4.tar.gz |
| Last updated | 2026-06-25T00:11:38Z |
| Pulse | updated |
| Dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | go-critic |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
go-critic
nix profile install nixpkgs#go-criticgo-critic
sudo port install go-criticsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.