Skip to content

Commit 68f91be

Browse files
Add detekt plugin and fix workflow task name from detect to detekt
1 parent 2146ec1 commit 68f91be

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/manual.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Android Build
22

33
on:
44
push:
5-
branches: [ human-operator, main ]
5+
branches: [ human-operator, main, detekt-fixes ]
66
workflow_dispatch: # Ermöglicht manuelle Ausführung des Workflows
77

88
jobs:
@@ -106,11 +106,11 @@ jobs:
106106

107107
- name: Detect (app)
108108
if: needs.detect-changes.outputs.app_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
109-
run: ./gradlew :app:detect
109+
run: ./gradlew :app:detekt
110110

111111
- name: Detect (humanoperator)
112112
if: needs.detect-changes.outputs.humanoperator_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
113-
run: ./gradlew :humanoperator:detect
113+
run: ./gradlew :humanoperator:detekt
114114

115115
build:
116116
needs: [detect-changes, compile-check]

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
77
id("kotlin-parcelize")
88
id("com.google.gms.google-services")
9+
id("io.gitlab.arturbosch.detekt")
910
}
1011

1112
// Redirect build output to C: drive (NTFS) to avoid corrupted ExFAT build cache

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ plugins {
2424
id("org.jetbrains.kotlin.android") version "1.9.20" apply false
2525
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") version "2.0.1" apply false
2626
id("com.google.gms.google-services") version "4.4.2" apply false
27+
id("io.gitlab.arturbosch.detekt") version "1.23.4"
2728
}

humanoperator/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id("com.android.application")
33
id("org.jetbrains.kotlin.android")
44
id("com.google.gms.google-services")
5+
id("io.gitlab.arturbosch.detekt")
56
}
67

78
android {

0 commit comments

Comments
 (0)