Skip to content
Snippets Groups Projects
Commit 3420928d authored by Lorenz Boguhn's avatar Lorenz Boguhn Committed by Sören Henning
Browse files

Add Ktlint to gradle.build and CI pipeline

parent a6c44bb2
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!84Gitlab CI for Theodolite-Kotlin-Quarkus,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -23,10 +23,10 @@ test:
script:
- ./theodolite-quarkus/gradlew test --stacktrace
# code_style_klint:
# stage: test
# script:
# - ./theodolite-quarkus/gradlew ktlintCheck
code_style_klint:
stage: test
script:
- ./theodolite-quarkus/gradlew ktlintCheck
codeanalysis_detekt:
stage: test
......
......@@ -2,7 +2,8 @@ plugins {
id 'org.jetbrains.kotlin.jvm' version "1.3.72"
id "org.jetbrains.kotlin.plugin.allopen" version "1.3.72"
id 'io.quarkus'
id "io.gitlab.arturbosch.detekt" version "1.15.0"
id "io.gitlab.arturbosch.detekt" version "1.15.0" //For code style
id "org.jlleitschuh.gradle.ktlint" version "10.0.0" // same as above
}
repositories {
......@@ -53,4 +54,8 @@ detekt {
failFast = true // fail build on any finding
buildUponDefaultConfig = true
ignoreFailures = true
}
ktlint {
ignoreFailures = true
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment