- Notifications
You must be signed in to change notification settings - Fork0
An anti-bikeshedding Kotlin linter with built-in formatter
License
shadforth/ktlint
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Kotlin linter in spirit ofstandard/standard (JavaScript) andgofmt (Go).
- 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
Follow steps below for a quick start with latest ktlint release.
Step 1: Install with brew
brew install ktlint
Seedownload and verification from GitHub orother package managers for alternative ways of installing ktlint. Or, use one of theintegrations 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# orktlint -FSeecli usage for a more extensive description on using ktlint.
This project is not affiliated with nor endorsed by JetBrains.
All code, unless specified otherwise, is licensed under theMIT license.
Copyright (c) 2019 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.
About
An anti-bikeshedding Kotlin linter with built-in formatter
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Kotlin99.9%
- Other0.1%
