File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
2
+
1
3
plugins {
2
4
id(" com.android.application" ) version " 8.7.1"
3
5
id(" org.jetbrains.kotlin.android" ) version " 2.1.10"
4
6
id(" org.jetbrains.kotlin.plugin.compose" ) version " 2.1.10"
5
7
id(" org.jetbrains.kotlin.plugin.serialization" ) version " 2.1.10"
6
8
id(" com.google.protobuf" ) version " 0.9.4"
9
+ id(" org.jlleitschuh.gradle.ktlint" ) version " 12.1.2"
7
10
}
8
11
9
12
// This is the version of the app that is displayed in the UI on the drawer.
@@ -43,7 +46,6 @@ android {
43
46
kotlinOptions {
44
47
jvmTarget = " 17"
45
48
}
46
-
47
49
}
48
50
49
51
dependencies {
@@ -83,9 +85,9 @@ dependencies {
83
85
implementation(" com.google.zxing:core:3.4.1" )
84
86
85
87
// Tests
86
- testImplementation (" junit:junit:4.13.2" )
87
- androidTestImplementation (" androidx.test.ext:junit:1.2.1" )
88
- androidTestImplementation (" androidx.test.espresso:espresso-core:3.6.1" )
88
+ testImplementation(" junit:junit:4.13.2" )
89
+ androidTestImplementation(" androidx.test.ext:junit:1.2.1" )
90
+ androidTestImplementation(" androidx.test.espresso:espresso-core:3.6.1" )
89
91
}
90
92
91
93
protobuf {
@@ -103,3 +105,10 @@ protobuf {
103
105
}
104
106
}
105
107
}
108
+
109
+ ktlint {
110
+ ignoreFailures = false
111
+ reporters {
112
+ reporter(ReporterType .PLAIN ).apply { outputToConsole = true }
113
+ }
114
+ }
You can’t perform that action at this time.
0 commit comments