Automic VaultAutomic Vault

brew

ktlint を Homebrew, MacPorts, Nix, pacman, scoop でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install ktlint

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install ktlint

MacPorts ports tree · devel/ktlint/Portfile · ソース: api.github.com

Linux

Nix確認済み · 92%
nix profile install nixpkgs#ktlint

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

Arch Linux pacman確認済み · 92%
sudo pacman -S ktlint

Arch Linux sync databases · ktlint · ソース: geo.mirror.pkgbuild.com

Windows

Scoop確認済み · 92%
scoop install main/ktlint

Scoop official bucket manifest trees · bucket/ktlint.json · ソース: api.github.com

概要

パッケージ概要

Anti-bikeshedding Kotlin linter with built-in formatter

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

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

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

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

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
ktlintcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.8.0
マネージャ更新日2026-07-04
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/ktlint/ktlint

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:ktlint
バージョン1.8.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/ktlint
ホームページhttps://ktlint.github.io/
リポジトリhttps://github.com/ktlint/ktlint
上流ドキュメントhttps://pinterest.github.io/ktlint/latest
ライセンスMIT
ソースアーカイブhttps://github.com/ktlint/ktlint/releases/download/1.8.0/ktlint-1.8.0.zip
最終更新2026-07-04T16:53:43+09:00
Pulseupdated
依存関係openjdk
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

ktlint

nix profile install nixpkgs#ktlint
  • normalized package name match
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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