ktlint: Setup and format kotlin scripts

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-12-30 11:19:12 +08:00
parent b5f1b3b5e6
commit b5b73f557b
3 changed files with 27 additions and 13 deletions

9
.editorconfig Normal file
View File

@@ -0,0 +1,9 @@
#
# SPDX-FileCopyrightText: 2025 The Calyx Institute
# SPDX-License-Identifier: GPL-3.0-or-later
#
root = true
[*.{kt,kts}]
ktlint_code_style = android_studio

View File

@@ -170,6 +170,11 @@ ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
ktlint {
android = true
verbose = true
}
dependencies {
// Google's Goodies

View File

@@ -24,7 +24,7 @@ hilt = "2.57.2"
junit = "4.13.2"
kotlin = "2.3.0"
ksp = "2.3.4"
ktlint = "12.1.2"
ktlint = "14.0.1"
leakcanary = "2.14"
libsu = "6.0.0"
lifecycle = "2.10.0"