macOS
brew install ktlintlocal Homebrew formula metadata
sudo port install ktlintMacPorts ports tree · devel/ktlint/Portfile · 来源: api.github.com
安装
brew install ktlintlocal Homebrew formula metadata
sudo port install ktlintMacPorts ports tree · devel/ktlint/Portfile · 来源: api.github.com
nix profile install nixpkgs#ktlintnixpkgs package indexes · pkgs/by-name/kt/ktlint/package.nix · 来源: api.github.com
sudo pacman -S ktlintArch Linux sync databases · ktlint · 来源: geo.mirror.pkgbuild.com
scoop install main/ktlintScoop official bucket manifest trees · bucket/ktlint.json · 来源: api.github.com
概览
Anti-bikeshedding Kotlin linter with built-in formatter
历史
ktlint is an anti-bikeshedding Kotlin linter with a built-in formatter. Its docs describe it as a Kotlin linter in the spirit of JavaScript Standard Style and gofmt: low setup, conventional defaults, and automatic formatting when possible.
The documentation copyright trail records Stanley Shyiko's original 2016-2019 authorship and Pinterest's 2019 stewardship. The repository later moved from the pinterest namespace to the ktlint organization on GitHub, while the Homebrew package still records the historical pinterest/ktlint repository URL.
ktlint gained adoption by combining a CLI jar, Maven/Gradle integrations, reporters, custom rule sets, .editorconfig support, and package-manager distribution. Its docs emphasize no-configuration defaults, Kotlin coding conventions, Android Kotlin Style Guide alignment, and extensibility for organizations that need custom checks.
Users run ktlint to scan .kt and .kts files, optionally with --format or -F to autocorrect violations. Teams commonly add it to build pipelines, pre-commit hooks, editor workflows, or Gradle/Maven tasks, with .editorconfig and baseline files used when defaults need project-level adjustment.
ktlint is significant because it became the Kotlin ecosystem's canonical packaged linter/formatter pair: one executable jar, common default rules, multiple reporters, custom rulesets, and enough integration points to make style enforcement portable across editors, CI, and package managers.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.
.editorconfigktlint-baseline.xml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ktlint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ktlint/ktlint
安装元数据
| 软件包键 | brew:ktlint |
|---|---|
| 版本 | 1.8.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ktlint |
| 主页 | https://ktlint.github.io/ |
| 仓库 | https://github.com/ktlint/ktlint |
| 上游文档 | https://pinterest.github.io/ktlint/latest |
| 许可证 | MIT |
| 源码归档 | https://github.com/ktlint/ktlint/releases/download/1.8.0/ktlint-1.8.0.zip |
| 最后更新 | 2026-07-04T16:53:43+09:00 |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ktlint |
| 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 软件包链接分开显示。
ktlint
nix profile install nixpkgs#ktlintktlint 1.8.0-1
An anti-bikeshedding Kotlin linter with built-in formatter
sudo pacman -S ktlintktlint
sudo port install ktlintmain/ktlint
scoop install main/ktlint来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.