Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - pinterest/ktlint: An anti-bikeshedding Kotlin linter with built-in formatter
An anti-bikeshedding Kotlin linter with built-in formatter - pinterest/ktlint
Visit SiteGitHub - pinterest/ktlint: An anti-bikeshedding Kotlin linter with built-in formatter
An anti-bikeshedding Kotlin linter with built-in formatter - pinterest/ktlint
Powered by 0x5a.live ๐
Key features
- No configuration required
- Built-in Rule sets
- Built-in formatter
.editorconfig
support- Several built-in reporters:
plain
,json
,html
andcheckstyle
- 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 ktlint
See 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.kt
and.kts
in the current directory and below will be scanned. Problems will be fixed automatically when possible.ktlint --format # or ktlint -F
See cli usage for a more extensive description on using ktlint.
Documentation
User guide
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.
Kotlin Resources
are all listed below.
Made with โค๏ธ
to provide different kinds of informations and resources.