Skip to content

Commit d8b0802

Browse files
committed
Fix lint issues
1 parent 4df06d7 commit d8b0802

11 files changed

Lines changed: 387 additions & 536 deletions

File tree

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
# don't set end_of_line; let correct git setting checkout the appropriate one for OS
12+
charset = utf-8
13+
14+
[*.{json,yml,yaml,html,tf}]
15+
indent_size = 2
16+
ij_json_array_wrapping = normal
17+
18+
[*.{kt,kts}]
19+
ktlint_code_style = intellij_idea
20+
max_line_length = 120
21+
ij_kotlin_allow_trailing_comma = true
22+
ij_kotlin_allow_trailing_comma_on_call_site = true
23+
24+
[*Test.{kt,kts}]
25+
ktlint_standard_max-line-length = disabled

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,10 @@ dependencies {
6565
testImplementation ("io.mockk:mockk:1.13.4")
6666
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
6767
}
68+
69+
ktlint {
70+
android = true
71+
reporters {
72+
reporter "html"
73+
}
74+
}

src/main/kotlin/com/mparticle/kits/RoktKit.kt

Lines changed: 117 additions & 119 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)