# detekt を Homebrew, Nix, scoop でインストール

detekt のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:detekt
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install detekt
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#detekt
```

  証拠: nixpkgs package indexes: pkgs/by-name/de/detekt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/detekt
```

  証拠: Scoop official bucket manifest trees: bucket/detekt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:detekt
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/detekt>
- **バージョン:** 1.23.8
- **ソース概要:** Static code analysis for Kotlin
- **ホームページ:** <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
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- detekt (cli)
- detekt (エイリアス)

## 依存関係

- openjdk@21

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.23.8
- マネージャ更新日: 2026-07-21
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/detekt/detekt
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://github.com/detekt/detekt>
- <https://github.com/detekt/detekt/blob/main/README.md>
- <https://detekt.dev/changelog>
- <https://api.github.com/repos/detekt/detekt>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: config/detekt/detekt.yml, config/detekt/baseline.xml
## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Nix - detekt: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/detekt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/detekt: normalized package name match | Scoop official bucket manifest trees: bucket/detekt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk@21](https://pkg.so/ja/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [ktlint](https://pkg.so/ja/brew/ktlint/) - Shares pkgdb curated category or tags: cli, developer-tools, kotlin, static-analysis.
- [checkstyle](https://pkg.so/ja/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [credo](https://pkg.so/ja/brew/credo/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [shellcheck](https://pkg.so/ja/brew/shellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, static-analysis.
- [eslint](https://pkg.so/ja/brew/eslint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [pylint](https://pkg.so/ja/brew/pylint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [phpstan](https://pkg.so/ja/brew/phpstan/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [pmd](https://pkg.so/ja/brew/pmd/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.

## Combined YAML source

View the package source record on GitHub. [combined/detekt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/detekt.yml)


## ソース

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