-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Follow steps below for a quick start with latest ktlint release. | ||
|
||
## Step 1: Install with brew | ||
```shell | ||
brew install ktlint | ||
``` | ||
See [download and verification from GitHub](../install/cli/#download-and-verification) or [other package managers](../install/cli/#package-managers) for alternative ways of installing ktlint. Or, use one of the [integrations like maven and gradle plugins](../install/integrations/). | ||
|
||
## 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. | ||
```shell title="Autocorrect style violations" | ||
ktlint --format | ||
# or | ||
ktlint -F | ||
``` | ||
See [cli usage](../install/cli/#command-line-usage) for a more extensive description on using ktlint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Follow steps below for a quick start with latest ktlint release. | ||
|
||
## Step 1: Install with brew | ||
```shell | ||
brew install ktlint | ||
``` | ||
See [download and verification from GitHub](../install/cli/#download-and-verification) or [other package managers](../install/cli/#package-managers) for alternative ways of installing ktlint. Or, use one of the [integrations like maven and gradle plugins](../install/integrations/). | ||
|
||
## 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. | ||
```shell title="Autocorrect style violations" | ||
ktlint --format | ||
# or | ||
ktlint -F | ||
``` | ||
See [cli usage](../install/cli/#command-line-usage) for a more extensive description on using ktlint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters