Skip to content

Commit

Permalink
Fixed diktat-cli (saveourtool#1841)
Browse files Browse the repository at this point in the history
- removed warning about multi-jar
- fixed reporters
  • Loading branch information
nulls authored Dec 1, 2023
1 parent 4fa6d7e commit 5511527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions diktat-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set("")
manifest {
attributes["Main-Class"] = "com.saveourtool.diktat.DiktatMainKt"
attributes["Multi-Release"] = true
}
duplicatesStrategy = DuplicatesStrategy.FAIL
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data class DiktatProperties(
val mode: DiktatMode,
val reporterType: DiktatReporterType,
val output: String?,
private val groupByFileInPlain: Boolean,
private val groupByFileInPlain: Boolean?,
private val colorNameInPlain: String?,
private val logLevel: Level,
val patterns: List<String>,
Expand Down Expand Up @@ -147,12 +147,12 @@ data class DiktatProperties(
shortName = "o",
description = "Redirect the reporter output to a file.",
)
val groupByFileInPlain: Boolean by parser.option(
val groupByFileInPlain: Boolean? by parser.option(
type = ArgType.Boolean,
fullName = "plain-group-by-file",
shortName = null,
description = "A flag for plain reporter"
).default(false)
)
val colorName: String? by parser.colorName(diktatReporterFactory)
val logLevel: Level by parser.option(
type = ArgType.Choice<Level>(),
Expand Down

0 comments on commit 5511527

Please sign in to comment.