add plugin common ktlint
This commit is contained in:
@@ -21,6 +21,12 @@ id `ltd.hlaeja.plugin.hlaeja-common-plugin.common-detekt`
|
|||||||
|
|
||||||
Detect is a code smell analysis for your Kotlin projects.
|
Detect is a code smell analysis for your Kotlin projects.
|
||||||
|
|
||||||
|
### Plugin Common Ktlint
|
||||||
|
|
||||||
|
id `ltd.hlaeja.plugin.hlaeja-common-plugin.common-ktlint`
|
||||||
|
|
||||||
|
Ktlint enforces consistent code style and formatting across Kotlin codebases.
|
||||||
|
|
||||||
## Releasing plugin
|
## Releasing plugin
|
||||||
|
|
||||||
Run `release.sh` script from `master` branch.
|
Run `release.sh` script from `master` branch.
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ dependencies {
|
|||||||
implementation(hlaeja.io.gitlab.arturbosch.detekt.gradle.plugin)
|
implementation(hlaeja.io.gitlab.arturbosch.detekt.gradle.plugin)
|
||||||
implementation(hlaeja.ltd.hlaeja.plugin.core)
|
implementation(hlaeja.ltd.hlaeja.plugin.core)
|
||||||
implementation(hlaeja.org.jetbrains.kotlin.gradle.plugin)
|
implementation(hlaeja.org.jetbrains.kotlin.gradle.plugin)
|
||||||
|
implementation(hlaeja.org.jlleitschuh.ktlint.gradle.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Hlæja Common Plugin"
|
description = "Hlæja Common Plugin"
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType.SARIF
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("org.jlleitschuh.gradle.ktlint")
|
||||||
|
}
|
||||||
|
|
||||||
|
ktlint {
|
||||||
|
verbose = true
|
||||||
|
filter {
|
||||||
|
exclude("**/generated/**")
|
||||||
|
include("**/kotlin/**")
|
||||||
|
}
|
||||||
|
kotlinScriptAdditionalPaths {
|
||||||
|
include(fileTree("scripts/*"))
|
||||||
|
}
|
||||||
|
reporters {
|
||||||
|
reporter(SARIF)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common-detekt")
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common-detekt")
|
||||||
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common-ktlint")
|
||||||
|
|
||||||
id("ltd.hlaeja.plugin.hlaeja-core-plugin")
|
id("ltd.hlaeja.plugin.hlaeja-core-plugin")
|
||||||
|
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
|
|||||||
Reference in New Issue
Block a user