macOS
brew install go-criticlocal Homebrew formula metadata
sudo port install go-criticMacPorts ports tree · devel/go-critic/Portfile · 来源: api.github.com
安装
brew install go-criticlocal Homebrew formula metadata
sudo port install go-criticMacPorts ports tree · devel/go-critic/Portfile · 来源: api.github.com
nix profile install nixpkgs#go-criticnixpkgs package indexes · pkgs/by-name/go/go-critic/package.nix · 来源: api.github.com
概览
Opinionated Go source code linter
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
go-critic | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
gocritic | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:go-critic |
|---|---|
| 版本 | 0.14.4 |
| 软件包管理器 | Homebrew |
| 主页 | https://go-critic.com |
| 仓库 | https://github.com/go-critic/go-critic |
| 最后更新 | 2026-07-29T16:05:03+02:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
go-critic
nix profile install nixpkgs#go-criticgo-critic
sudo port install go-critic来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.