macOS
brew install staticchecklocal Homebrew formula metadata
sudo port install staticcheckMacPorts ports tree · devel/staticcheck/Portfile · 来源: api.github.com
安装
brew install staticchecklocal Homebrew formula metadata
sudo port install staticcheckMacPorts ports tree · devel/staticcheck/Portfile · 来源: api.github.com
sudo apk add staticcheckAlpine Linux edge package indexes · staticcheck · 来源: dl-cdn.alpinelinux.org
sudo dnf install staticcheckFedora Rawhide package metadata · staticcheck · 来源: dl.fedoraproject.org
sudo pacman -S staticcheckArch Linux sync databases · staticcheck · 来源: geo.mirror.pkgbuild.com
scoop install main/staticcheckScoop official bucket manifest trees · bucket/staticcheck.json · 来源: api.github.com
概览
State of the art linter for the Go programming language
历史
Staticcheck is a Go static-analysis command-line tool and one of the best-known third-party linters in the Go ecosystem. It is packaged as the `staticcheck` executable and is commonly installed with Go tooling or system package managers for local development and CI.
The upstream project lives in Dominik Honnef's `go-tools` repository, which was created in January 2017. The official README describes Staticcheck as an advanced Go linter that finds bugs and performance issues, offers simplifications, and enforces style rules.
Staticcheck publishes release notes on staticcheck.dev. The release-note index records releases from 2017.2 through the 2026 series, showing a long-running tool with versioned compatibility work alongside Go's release cadence.
The input package metadata lists Staticcheck in Homebrew, Alpine, Fedora, MacPorts, Arch, and Scoop. The official documentation also recommends installing released versions with `go install honnef.co/go/tools/cmd/staticcheck@latest` on modern Go versions or using prebuilt binaries from GitHub releases.
Staticcheck's package-manager footprint reflects its role as a standard quality gate for Go projects. It is useful as a standalone CLI, as a CI check, and as a linter that complements the Go compiler and `go vet`.
Typical usage is to run `staticcheck` against Go packages or wire it into CI. The tool can analyze code targeting Go versions up to the latest release, while the project recommends using tagged releases instead of master for stable builds.
Package nerds care about Staticcheck because it is a canonical example of a language ecosystem tool that lives outside the core toolchain but is widely treated as infrastructure. Its version tags, prebuilt binaries, and `go install` path make it straightforward to pin in reproducible builds.
For package managers, Staticcheck is high-value despite being a single executable: it is heavily used by Go developers, has stable release notes, and represents the broader `honnef.co/go/tools` analyzer collection.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
staticcheck.confstaticcheck.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
staticcheck | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/dominikh/go-tools
安装元数据
| 软件包键 | brew:staticcheck |
|---|---|
| 版本 | 2026.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/staticcheck |
| 主页 | https://staticcheck.dev/ |
| 仓库 | https://github.com/dominikh/go-tools |
| 上游文档 | https://staticcheck.dev/docs |
| 许可证 | MIT |
| 源码归档 | https://github.com/dominikh/go-tools/archive/refs/tags/2026.1.tar.gz |
| 最后更新 | 2026-07-08T03:14:15Z |
| Pulse | updated |
| 依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | staticcheck |
| Version Scheme | 0 |
| Revision | 5 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
staticcheck 2026.1-r3
advanced Go linter
https://github.com/dominikh/go-tools
sudo apk add staticcheckstaticcheck 2026.1-1.fc45
The advanced Go linter
https://github.com/dominikh/go-tools
sudo dnf install staticcheckstaticcheck 2026.1-3
The advanced Go linter
sudo pacman -S staticcheckstaticcheck
sudo port install staticcheckmain/staticcheck
scoop install main/staticcheck来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.