Merge pull request #446 from fiatjaf/ktlint

run ktlint after every change
This commit is contained in:
Barry Deen
2026-04-15 20:47:30 -04:00
committed by GitHub
4 changed files with 7 additions and 0 deletions
+3
View File
@@ -9,9 +9,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
./gradlew assembleRelease # Build release APK (minified with R8)
./gradlew installDebug # Build and install on connected device/emulator
./gradlew clean # Clean build artifacts
./gradlew ktlintFormat # Format Kotlin code
./gradlew ktlintCheck # Lint Kotlin code
```
No test suite exists yet. JDK 17 and Android SDK 35 are required.
Run `./gradlew ktlintFormat` then `./gradlew ktlintCheck` after every change.
## Architecture
+1
View File
@@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.objectbox)
alias(libs.plugins.ktlint)
}
android {
+1
View File
@@ -4,4 +4,5 @@ plugins {
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.objectbox) apply false
alias(libs.plugins.ktlint) apply false
}
+2
View File
@@ -1,6 +1,7 @@
[versions]
kotlin = "2.0.21"
agp = "8.13.2"
ktlint = "12.1.1"
compose-bom = "2024.12.01"
okhttp = "4.12.0"
kotlinx-serialization = "1.7.3"
@@ -77,3 +78,4 @@ kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
objectbox = { id = "io.objectbox", version.ref = "objectbox" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }