Automic VaultAutomic Vault

brew

Install detekt with Homebrew, Nix, scoop

Static code analysis for Kotlin. Version 1.23.8 via Homebrew; verified 2026-06-15.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install detekt

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#detekt

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

Windows

Scoopverified · 92%
scoop install main/detekt

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

overview

Package summary

Static code analysis for Kotlin

Commands and aliases

  • detekt

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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

executables

Installed executables

CommandKindExposureNote
detektcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.23.8
manager updated2026-06-15
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/detekt/detekt

install metadata

Package metadata

Package keybrew:detekt
Version1.23.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/detekt
Homepagehttps://detekt.dev
Repositoryhttps://github.com/detekt/detekt
Upstream docshttps://detekt.dev/
LicenseApache-2.0
Source archivehttps://github.com/detekt/detekt/releases/download/v1.23.8/detekt-cli-1.23.8-all.jar
Last updated2026-06-15T10:20:15-04:00
Pulseupdated
Dependenciesopenjdk@21
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

detekt

nix profile install nixpkgs#detekt
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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