# 安装 staticcheck

查看 staticcheck 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:staticcheck
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install staticcheck
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install staticcheck
```

  证据: MacPorts ports tree: devel/staticcheck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add staticcheck
```

  证据: Alpine Linux edge package indexes: staticcheck from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install staticcheck
```

  证据: Fedora Rawhide package metadata: staticcheck from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S staticcheck
```

  证据: Arch Linux sync databases: staticcheck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/staticcheck
```

  证据: Scoop official bucket manifest trees: bucket/staticcheck.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:staticcheck
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/staticcheck>
- **版本:** 2026.1
- **来源摘要:** State of the art linter for the Go programming language
- **主页:** <https://staticcheck.dev/>
- **仓库:** <https://github.com/dominikh/go-tools>
- **上游文档:** <https://staticcheck.dev/>
- **许可证:** MIT
- **源码归档:** <https://github.com/dominikh/go-tools/archive/refs/tags/2026.1.tar.gz>
- **更新:** 2026-05-07T23:16:13Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- staticcheck (cli)
- staticcheck (别名)

## 依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2026.1
- 管理器更新时间: 2026-05-07
- 本地数据: ok
- 上游仓库: https://github.com/dominikh/go-tools
- 检测到的最新版本: 2026.1 (current)

## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / medium
- generalized runtime or code generation signal

## 相关链接

- [go](https://www.automicvault.com/pkg/brew/go/) - Runtime dependency declared by Homebrew.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
