Automic VaultAutomic Vault

brew

Install go-critic with Homebrew, MacPorts, Nix

Opinionated Go source code linter. Version 0.14.4 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install go-critic

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install go-critic

MacPorts ports tree · devel/go-critic/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#go-critic

nixpkgs package indexes · pkgs/by-name/go/go-critic/package.nix · source: api.github.com

overview

Package summary

Opinionated Go source code linter

Commands and aliases

  • gocritic

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2018: The GitHub repository was created and the linter was announced.
  • 2019: v0.3.4 and v0.4.0 releases appeared on GitHub.
  • 2020: v0.4.x releases continued the checker-set expansion.
  • 2026: v0.14.x releases documented continued maintenance.

Related projects

  • golangci-lint
  • ruleguard
  • go vet
  • staticcheck

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gocriticcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.14.4
manager updated2026-06-25
local dataok
upstreamcurrent
latest detectedv0.14.4

https://github.com/go-critic/go-critic

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:go-critic
Version0.14.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/go-critic
Homepagehttps://go-critic.com
Repositoryhttps://github.com/go-critic/go-critic
Upstream docshttps://go-critic.com/
LicenseMIT
Source archivehttps://github.com/go-critic/go-critic/archive/refs/tags/v0.14.4.tar.gz
Last updated2026-06-25T00:11:38Z
Pulseupdated
Dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namego-critic
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

go-critic

nix profile install nixpkgs#go-critic
  • normalized package name match
  • Matched by: Go Critic
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/go-critic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

go-critic

sudo port install go-critic
  • normalized package name match
  • Matched by: Go Critic
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/go-critic/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment