Automic VaultAutomic Vault

brew

Install ktlint with Homebrew, MacPorts, Nix, pacman, scoop

Anti-bikeshedding Kotlin linter with built-in formatter. Version 1.8.0 via Homebrew; verified 2026-07-04.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ktlint

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install ktlint

MacPorts ports tree · devel/ktlint/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#ktlint

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

Arch Linux pacmanverified · 92%
sudo pacman -S ktlint

Arch Linux sync databases · ktlint · source: geo.mirror.pkgbuild.com

Windows

Scoopverified · 92%
scoop install main/ktlint

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

overview

Package summary

Anti-bikeshedding Kotlin linter with built-in formatter

Commands and aliases

  • ktlint

history

Project history and usage

ktlint is an anti-bikeshedding Kotlin linter with a built-in formatter. Its docs describe it as a Kotlin linter in the spirit of JavaScript Standard Style and gofmt: low setup, conventional defaults, and automatic formatting when possible.

Project history

The documentation copyright trail records Stanley Shyiko's original 2016-2019 authorship and Pinterest's 2019 stewardship. The repository later moved from the pinterest namespace to the ktlint organization on GitHub, while the Homebrew package still records the historical pinterest/ktlint repository URL.

Adoption history

ktlint gained adoption by combining a CLI jar, Maven/Gradle integrations, reporters, custom rule sets, .editorconfig support, and package-manager distribution. Its docs emphasize no-configuration defaults, Kotlin coding conventions, Android Kotlin Style Guide alignment, and extensibility for organizations that need custom checks.

How it is used

Users run ktlint to scan .kt and .kts files, optionally with --format or -F to autocorrect violations. Teams commonly add it to build pipelines, pre-commit hooks, editor workflows, or Gradle/Maven tasks, with .editorconfig and baseline files used when defaults need project-level adjustment.

Why package nerds care

ktlint is significant because it became the Kotlin ecosystem's canonical packaged linter/formatter pair: one executable jar, common default rules, multiple reporters, custom rulesets, and enough integration points to make style enforcement portable across editors, CI, and package managers.

Timeline

  • 2016: The docs copyright trail begins Stanley Shyiko's authorship period.
  • 2019: Pinterest stewardship appears in the docs copyright trail.
  • 2024-12-04: Tag 1.5.0 was published in the GitHub tag history.
  • 2025-11-14: Release 1.8.0 was published on GitHub.

Related projects

  • Related projects include Kotlin coding conventions, Android Kotlin Style Guide, gofmt, JavaScript Standard Style, ktfmt, Gradle, Maven, and .editorconfig.

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
.editorconfigktlint-baseline.xml

executables

Installed executables

CommandKindExposureNote
ktlintcliglobal 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.8.0
manager updated2026-07-04
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/ktlint/ktlint

install metadata

Package metadata

Package keybrew:ktlint
Version1.8.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ktlint
Homepagehttps://ktlint.github.io/
Repositoryhttps://github.com/ktlint/ktlint
Upstream docshttps://pinterest.github.io/ktlint/latest
LicenseMIT
Source archivehttps://github.com/ktlint/ktlint/releases/download/1.8.0/ktlint-1.8.0.zip
Last updated2026-07-04T16:53:43+09:00
Pulseupdated
Dependenciesopenjdk
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namektlint
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%

ktlint

nix profile install nixpkgs#ktlint
  • normalized package name match
  • Matched by: Ktlint
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/kt/ktlint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

ktlint 1.8.0-1

An anti-bikeshedding Kotlin linter with built-in formatter

https://ktlint.github.io/

sudo pacman -S ktlint
  • License: MIT
  • Architecture: any
  • 1 dependencies
  • normalized package name match
  • Matched by: Ktlint
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ktlint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

ktlint

sudo port install ktlint
  • normalized package name match
  • Matched by: Ktlint
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/ktlint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/ktlint

scoop install main/ktlint
  • normalized package name match
  • Matched by: Ktlint
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/ktlint.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