Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add twitter compose rules ktlint check #610

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
run: |
./gradlew --scan --stacktrace \
spotlessCheck \
lintDebug
lintDebug \
lintKotlin

- name: Unit Tests
run: |
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ buildscript {
classpath libs.paparazziPlugin

classpath libs.dagger.hiltandroidplugin

classpath libs.twitter.compose.rules.ktlint
}
}

Expand All @@ -47,6 +49,7 @@ plugins {
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.protobuf) apply false
alias(libs.plugins.kolinter) apply false
}

apply plugin: 'org.jetbrains.dokka'
Expand Down Expand Up @@ -104,6 +107,7 @@ allprojects {

subprojects {
apply plugin: 'com.diffplug.spotless'
apply plugin: 'org.jmailen.kotlinter'

spotless {
kotlin {
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ googledagger = "2.43.2"
gradlePlugin = "7.2.2"
io-coil-kt = "2.1.0"
junit = "4.13.2"
kolinter = "3.12.0"
kotlin = "1.7.0"
kotlinxCoroutine = "1.6.4"
ksp = "1.7.0-1.0.6"
Expand All @@ -39,6 +40,7 @@ moshi = "1.13.0"
room = "2.4.3"
spotless = "6.9.0"
truth = "1.1.3"
twitterComposeRulesKtlint = "0.0.13"
versionCatalogUpdate = "0.5.3"
wearcompose = "1.0.0"

Expand Down Expand Up @@ -143,13 +145,15 @@ room-common = { module = "androidx.room:room-common", version.ref = "room" }
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }
twitter-compose-rules-ktlint = { module = "com.twitter.compose.rules:ktlint", version.ref = "twitterComposeRulesKtlint" }
wearcompose-foundation = { module = "androidx.wear.compose:compose-foundation", version.ref = "wearcompose" }
wearcompose-material = { module = "androidx.wear.compose:compose-material", version.ref = "wearcompose" }
wearcompose-navigation = { module = "androidx.wear.compose:compose-navigation", version.ref = "wearcompose" }

[plugins]
benManes = { id = "com.github.ben-manes.versions", version.ref = "benManes" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kolinter = { id = "org.jmailen.kotlinter", version.ref = "kolinter" }
kotlinGradle = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
Expand Down