Skip to content

Commit

Permalink
[android] Fix ktlint settings (expo#13814)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowczarz authored and Felipe committed Sep 18, 2021
1 parent 762e2ff commit ec36ec7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,14 @@ subprojects {
kotlin {
target '**/*.kt'
ktlint("0.41.0").userData([
"disabled_rules" : "no-wildcard-imports,import-ordering",
"indent_size" : "2",
"continuation_indent_size": "4"
"disabled_rules" : "no-wildcard-imports,import-ordering",
"charset" : "utf-8",
"end_of_line" : "lf",
"indent_size" : "2",
"indent_style" : "space",
"insert_final_newline" : "true",
"tab_width" : "2",
"trim_trailing_whitespace" : "true"
])
trimTrailingWhitespace()
indentWithSpaces()
Expand Down
13 changes: 9 additions & 4 deletions apps/bare-expo/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ subprojects {
spotless {
kotlin {
target '**/*.kt'
ktlint().userData([
"disabled_rules" : "no-wildcard-imports,import-ordering",
"indent_size" : "2",
"continuation_indent_size": "4"
ktlint("0.41.0").userData([
"disabled_rules" : "no-wildcard-imports,import-ordering",
"charset" : "utf-8",
"end_of_line" : "lf",
"indent_size" : "2",
"indent_style" : "space",
"insert_final_newline" : "true",
"tab_width" : "2",
"trim_trailing_whitespace" : "true"
])
trimTrailingWhitespace()
indentWithSpaces()
Expand Down

0 comments on commit ec36ec7

Please sign in to comment.