Ktlint
An anti-bikeshedding Kotlin linter with built-in formatter
Install / Use
/learn @pinterest/KtlintREADME
Key features
- No configuration required
- Built-in Rule sets
- Built-in formatter
.editorconfigsupport- Several built-in reporters:
plain,json,htmlandcheckstyle - Executable jar
- Allows extension with custom rule sets and reporters
Quick start
Follow steps below for a quick start with latest ktlint release.
-
Step 1: Install with brew
brew install ktlintSee download and verification from GitHub or other package managers for alternative ways of installing ktlint. Or, use one of the integrations like maven and gradle plugins.
-
Step 2: Lint and format your code
All files with extension.ktand.ktsin the current directory and below will be scanned. Problems will be fixed automatically when possible.ktlint --format # or ktlint -FSee cli usage for a more extensive description on using ktlint.
Documentation
<a href="https://pinterest.github.io/ktlint/">User guide</a>
Legal
This project is not affiliated with nor endorsed by JetBrains.
All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2019 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.
Related Skills
node-connect
335.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.5kCommit, push, and open a PR
