Skip to content

Commit 8d6841a

Browse files
committed
chore: ktlint
1 parent 39826f4 commit 8d6841a

File tree

58 files changed

+149
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+149
-210
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://pinterest.github.io/ktlint/latest/rules/standard
2+
3+
root = true
4+
5+
[*.{kt, kts}]
6+
ktlint_code_style = ktlint_official
7+
indent_size = 4
8+
indent_style = space
9+
ij_kotlin_allow_trailing_comma = false
10+
ij_kotlin_allow_trailing_comma_on_call_site = false
11+
12+
# enabled, disabled
13+
ktlint_standard = enabled
14+
ktlint_experimental = disabled
15+
ktlint_custom-rule-set = disabled
16+
17+
max_line_length = off
18+
insert_final_newline = false
19+
20+
# ktlint_standard_multiline-expression-wrapping = disabled
21+
# ktlint_standard_import-ordering = disabled
22+
# ktlint_standard_trailing-comma-on-declaration-site = disabled

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ dependencies {
3939
implementation(libs.androidx.hilt.navigation.compose)
4040

4141
implementation(libs.timber)
42-
}
42+
}

app/src/main/java/io/github/shinhyo/brba/app/BrBaApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ import android.app.Application
1919
import dagger.hilt.android.HiltAndroidApp
2020

2121
@HiltAndroidApp
22-
class BrBaApplication : Application()
22+
class BrBaApplication : Application()

app/src/main/java/io/github/shinhyo/brba/app/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ class MainActivity : AppCompatActivity() {
3636
}
3737
}
3838
}
39-
}
39+
}

app/src/main/java/io/github/shinhyo/brba/app/di/CoroutinesModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ internal object CoroutinesModule {
3737
// @MainImmediateDispatcher
3838
// @Provides
3939
// fun providesMainImmediateDispatcher(): CoroutineDispatcher = Dispatchers.Main.immediate
40-
}
40+
}

app/src/main/java/io/github/shinhyo/brba/app/initializer/TimberInitializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ class TimberInitializer : Initializer<Unit> {
2727
}
2828

2929
override fun dependencies(): MutableList<Class<out Initializer<*>>> = mutableListOf()
30-
}
30+
}

app/src/main/java/io/github/shinhyo/brba/app/navigation/BrbaNavHost.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ fun BrbaNavHost(startDestination: String = mainRoute) {
3636
}
3737
detailScreen()
3838
}
39-
}
39+
}

app/src/main/java/io/github/shinhyo/brba/app/ui/BrbaApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ import io.github.shinhyo.brba.app.navigation.BrbaNavHost
2121
@Composable
2222
fun BrbaApp() {
2323
BrbaNavHost()
24-
}
24+
}

app/src/main/java/io/github/shinhyo/brba/app/ui/BrbaAppState.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ fun rememberAppState(
3333

3434
@Stable
3535
class BrbaAppState(
36-
val navController: NavHostController,
37-
val coroutineScope: CoroutineScope,
36+
private val navController: NavHostController,
37+
val coroutineScope: CoroutineScope
3838
) {
3939

4040
fun onBackClick() {
4141
navController.popBackStack()
4242
}
43-
}
43+
}

build-logic/convention/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ dependencies {
2222
compileOnly(libs.android.tools.common)
2323
compileOnly(libs.kotlin.gradlePlugin)
2424
compileOnly(libs.ksp.gradlePlugin)
25+
compileOnly(libs.ktlint.gradlePlugin)
2526
}

0 commit comments

Comments
 (0)