Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, scoop 安装 detekt

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install detekt

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#detekt

nixpkgs package indexes · pkgs/by-name/de/detekt/package.nix · 来源: api.github.com

Windows

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

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

概览

软件包摘要

Static code analysis for Kotlin

命令和别名

  • detekt

历史

项目历史与用法

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.

时间线

  • 2016: GitHub repository created for detekt/detekt.
  • 2018: Release-candidate era visible in official GitHub releases.
  • 2023: detekt 1.23.0 added the experimental detekt compiler plugin and expanded rule coverage.
  • 2025: detekt 1.23.8 shipped as a point release with Kotlin 2.0.21 support.

Related projects

  • The official README names Kotlin, Gradle, ktlint, PMD, Checkstyle, SARIF, SonarQube, Codacy, and third-party detekt plugins as nearby tools and integration surfaces.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 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
config/detekt/detekt.ymlconfig/detekt/baseline.xml

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.23.8
管理器更新时间2026-07-21
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖openjdk@21
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

detekt

nix profile install nixpkgs#detekt
  • normalized package name match
  • 匹配方式:Detekt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/de/detekt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop95%

main/detekt

scoop install main/detekt
  • normalized package name match
  • 匹配方式:Detekt
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/detekt.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