pkg.soopen package index

brew / rank 1348

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. Also installable with nix: nix profile install nixpkgs#ktlint.

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 bottle metadata was recorded.

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
ktlintexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version1.8.0
manager updated2026-07-04
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:ktlint
Version1.8.0
Package managerHomebrew
Homepagehttps://ktlint.github.io/
Repositoryhttps://github.com/ktlint/ktlint
Last updated2026-07-04T16:53:43+09:00
Pulseupdated
Bottlenot recorded
Servicenone declared

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
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation