Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, pacman, scoop 安装 staticcheck

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install staticcheck

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install staticcheck

MacPorts ports tree · devel/staticcheck/Portfile · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/staticcheck

Scoop official bucket manifest trees · bucket/staticcheck.json · 来源: api.github.com

概览

软件包摘要

State of the art linter for the Go programming language

命令和别名

  • staticcheck

历史

项目历史与用法

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.

时间线

  • 2017: `dominikh/go-tools` repository created.
  • 2017: Staticcheck 2017.2 release published.
  • 2019: Staticcheck 2019.2 release notes described major performance and memory improvements.
  • 2026: Staticcheck 2026.1 and 2026.2 release candidates appeared in official releases.

Related projects

  • The same repository contains related tools such as `structlayout`, `structlayout-optimize`, and `structlayout-pretty`, and libraries used to implement the tools.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:programming language

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
staticcheck.conf
Windows
staticcheck.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
staticcheckcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2026.1
管理器更新时间2026-07-08
本地数据OK
上游当前
检测到的最新版本2026.1

https://github.com/dominikh/go-tools

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

apk95%

staticcheck 2026.1-r3

advanced Go linter

https://github.com/dominikh/go-tools

sudo apk add staticcheck
  • License: MIT
  • Architecture: x86_64
  • Source Package: staticcheck
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Staticcheck
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: staticcheck from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

staticcheck 2026.1-1.fc45

The advanced Go linter

https://github.com/dominikh/go-tools

sudo dnf install staticcheck
  • License: BSD-3-Clause AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: staticcheck
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Staticcheck
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: staticcheck from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

staticcheck 2026.1-3

The advanced Go linter

https://staticcheck.io

sudo pacman -S staticcheck
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Staticcheck
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: staticcheck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

staticcheck

sudo port install staticcheck
  • normalized package name match
  • 匹配方式:Staticcheck
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/staticcheck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/staticcheck

scoop install main/staticcheck
  • normalized package name match
  • 匹配方式:Staticcheck
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/staticcheck.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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