Skip to content

Commit

Permalink
build: add editorconfig for kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 15, 2020
1 parent ab8b642 commit b9c5c08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ indent_size = 2
[*.md]
indent_style = space
indent_size = 4

[*.{kt,kts}]
# possible values: number (e.g. 2), "unset" (makes ktlint ignore indentation completely)
indent_size=4
# true (recommended) / false
insert_final_newline=true
# possible values: number (e.g. 120) (package name, imports & comments are ignored), "off"
# it's automatically set to 100 on `ktlint --android ...` (per Android Kotlin Style Guide)
max_line_length=off

0 comments on commit b9c5c08

Please sign in to comment.