macOS
brew install checkstylelocal Homebrew formula metadata
sudo port install checkstyleMacPorts ports tree · java/checkstyle/Portfile · 来源: api.github.com
安装
brew install checkstylelocal Homebrew formula metadata
sudo port install checkstyleMacPorts ports tree · java/checkstyle/Portfile · 来源: api.github.com
sudo apt install checkstyleDebian stable package indexes · checkstyle · 来源: deb.debian.org
nix profile install nixpkgs#checkstylenixpkgs package indexes · pkgs/by-name/ch/checkstyle/package.nix · 来源: api.github.com
概览
Check Java source against a coding standard
历史
Checkstyle is a long-running Java code-quality tool for checking source code against coding standards. It is one of the classic packaged Java developer tools: available as a command-line jar, Maven artifact, build-tool integration, and operating-system package.
The official site describes Checkstyle as a development tool that helps programmers write Java code adhering to a coding standard and automates checking tasks that would otherwise be manual. It is highly configurable and ships example configurations for Sun Code Conventions and Google Java Style.
The current GitHub repository was created in 2013, but the official site footer and release-note history identify the project as dating back to 2001. Modern releases continue under the checkstyle/checkstyle GitHub organization, with 13.7.0 published in June 2026.
Checkstyle is distributed through GitHub releases and Maven Central according to the official README and website. The batch metadata also lists Homebrew, Debian, Ubuntu, MacPorts, and Nix, reflecting its role as both a Java build dependency and a standalone command-line tool.
The README points users to Maven artifacts, command-line usage, configuration documentation, discussions, Stack Overflow, Google Groups, and contributor channels, evidence of a mature tool with both user and maintainer communities.
Typical command-line usage runs java -jar checkstyle-*-all.jar with a required configuration XML file and one or more files or folders. The official docs describe plain, XML, and SARIF output and the -c option for choosing the configuration.
In build systems, Checkstyle is commonly used through Maven or other Java build integrations to enforce project, company, Google, Sun, OpenJDK, or custom style rules.
Package nerds care about Checkstyle because it is a durable example of a Java quality tool that lives simultaneously in Maven Central, binary release pages, system package managers, and build plugins. It predates many modern linter ecosystems while still shipping frequent releases.
Its configuration model is also historically important: a tree of modules rooted at Checker, XML DTD/XSD validation, and style configuration files made it flexible enough for many organizations before language-server and formatter-first workflows became common.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
checkstyle | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/checkstyle/checkstyle
安装元数据
| 软件包键 | brew:checkstyle |
|---|---|
| 版本 | 13.8.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/checkstyle |
| 主页 | https://checkstyle.sourceforge.io/ |
| 仓库 | https://github.com/checkstyle/checkstyle |
| 上游文档 | https://checkstyle.org/checks.html |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://github.com/checkstyle/checkstyle/releases/download/checkstyle-13.8.0/checkstyle-13.8.0-all.jar |
| 最后更新 | 2026-07-12T06:38:52Z |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | checkstyle |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
checkstyle 8.36.1-1
checks Java source against a coding standard
https://checkstyle.sourceforge.io/
sudo apt install checkstylecheckstyle-doc 8.36.1-1
Documentation for Checkstyle
https://checkstyle.sourceforge.io/
sudo apt install checkstyle-doccheckstyle
nix profile install nixpkgs#checkstylecheckstyle 8.36.1-1
checks Java source against a coding standard
https://checkstyle.sourceforge.io/
sudo apt install checkstylecheckstyle-doc 8.36.1-1
Documentation for Checkstyle
https://checkstyle.sourceforge.io/
sudo apt install checkstyle-doccheckstyle
sudo port install checkstyle来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.