macOS
brew install detektlocal Homebrew formula metadata
安装
brew install detektlocal Homebrew formula metadata
nix profile install nixpkgs#detektnixpkgs package indexes · pkgs/by-name/de/detekt/package.nix · 来源: api.github.com
scoop install main/detektScoop official bucket manifest trees · bucket/detekt.json · 来源: api.github.com
概览
Static code analysis for Kotlin
历史
detekt is a static-analysis and linting tool for Kotlin. Its official README describes code smell analysis, configurable rule sets, baselines for legacy projects, multiple report formats, Gradle integration, and extension points for custom rules and reports.
The detekt GitHub repository was created in October 2016. Early release tags used milestone and release-candidate names, while the modern project documents stable 1.x releases and 2.0.0 alpha documentation on detekt.dev.
detekt grew with Kotlin's move from Android-focused adoption into broader JVM and multiplatform use. Its README highlights Maven Central, the Gradle plugin, third-party plugins, IDE and CI integrations, SARIF output for code scanning, and a marketplace for custom rules.
Package users typically install the CLI jar, Homebrew formula, or Gradle plugin, then point detekt at Kotlin sources with a YAML config and optional baseline XML. In Gradle builds, teams commonly configure reports such as HTML, Checkstyle XML, SARIF, and Markdown.
detekt matters in package-manager culture because it is one of the canonical Kotlin quality gates: language-specific, rule-driven, CI-friendly, and packaged across CLI, Maven Central, Gradle, Homebrew, Scoop, and Nix-style workflows.
安全态势
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.
config/detekt/detekt.ymlconfig/detekt/baseline.xml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
detekt | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/detekt/detekt
安装元数据
| 软件包键 | brew:detekt |
|---|---|
| 版本 | 1.23.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/detekt |
| 主页 | https://detekt.dev |
| 仓库 | https://github.com/detekt/detekt |
| 上游文档 | https://detekt.dev/ |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/detekt/detekt/releases/download/v1.23.8/detekt-cli-1.23.8-all.jar |
| 最后更新 | 2026-07-21T19:07:03-04:00 |
| Pulse | updated |
| 依赖 | openjdk@21 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | detekt |
| 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 软件包链接分开显示。
detekt
nix profile install nixpkgs#detektmain/detekt
scoop install main/detekt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.