# Install detekt

Static code analysis for Kotlin. Version 1.23.8 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install detekt
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package Facts

- **Package key:** brew:detekt
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/detekt>
- **Version:** 1.23.8
- **Source summary:** Static code analysis for Kotlin
- **Homepage:** <https://github.com/detekt/detekt>
- **Repository:** <https://github.com/detekt/detekt>
- **Upstream docs:** <https://detekt.dev/>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/detekt/detekt/releases/download/v1.23.8/detekt-cli-1.23.8-all.jar>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- detekt (cli)
- detekt (alias)

## Dependencies

- openjdk@21

## Install Behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 1.23.8
- Local data status: ok
- Upstream repository: https://github.com/detekt/detekt
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related Links

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk@21](https://www.automicvault.com/zh-hans/pkg/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [ktlint](https://www.automicvault.com/zh-hans/pkg/brew/ktlint/) - Shares av.db curated category or tags: cli, developer-tools, kotlin, static-analysis.
- [checkstyle](https://www.automicvault.com/zh-hans/pkg/brew/checkstyle/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [hlint](https://www.automicvault.com/zh-hans/pkg/brew/hlint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [wartremover](https://www.automicvault.com/zh-hans/pkg/brew/wartremover/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [credo](https://www.automicvault.com/zh-hans/pkg/brew/credo/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [swiftlint](https://www.automicvault.com/zh-hans/pkg/brew/swiftlint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [shellcheck](https://www.automicvault.com/zh-hans/pkg/brew/shellcheck/) - Shares av.db curated category or tags: cli, developer-tools, linting, static-analysis.
- [sonar-scanner](https://www.automicvault.com/zh-hans/pkg/brew/sonar-scanner/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, static-analysis.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
