Skip to content

Commit

Permalink
fixed save.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Nov 8, 2023
1 parent e530245 commit 5280a97
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions diktat-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
implementation(projects.diktatRules)
implementation(libs.kotlinx.cli)
implementation(libs.kotlin.logging)
implementation(libs.slf4j.api)
implementation(libs.log4j2.core)
implementation(libs.log4j2.slf4j2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.saveourtool.diktat.test.framework.util.deleteIfExistsSilently
import com.saveourtool.diktat.test.framework.util.inheritJavaHome
import com.saveourtool.diktat.test.framework.util.isWindows
import com.saveourtool.diktat.test.framework.util.temporaryDirectory
import generated.KTLINT_VERSION

import io.github.oshai.kotlinlogging.KotlinLogging
import org.assertj.core.api.Assertions.fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ abstract class DiktatSmokeTestBase {
"Example1Test.kt" -> dest.copyTo(dest.parent.resolve("Example1-2Test.kt"))
}
}

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlin.system.measureNanoTime

internal const val BUILD_DIRECTORY = "build/libs"
internal const val DIKTAT_FAT_JAR = "diktat.jar"
internal const val DIKTAT_FAT_JAR_GLOB = "diktat-*.jar"
internal const val DIKTAT_FAT_JAR_GLOB = "diktat-cli-*.jar"

private val logger = KotlinLogging.logger {}

Expand Down
4 changes: 2 additions & 2 deletions diktat-cli/src/test/resources/test/smoke/save.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
execCmd="java -showversion -jar diktat.jar --log-level=debug"
execCmd="java -showversion -jar diktat.jar --log-level debug"
tags = ["smokeTest"]
description = "SmokeTest"
suiteName = "SmokeTest"
Expand All @@ -9,7 +9,7 @@ timeOutMillis = 3600000

["fix and warn"]
["fix and warn".fix]
execFlags="--mode=fix"
execFlags="--mode fix"
["fix and warn".warn]
lineCaptureGroup = 1
columnCaptureGroup = 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
execCmd="java -showversion -jar diktat.jar --log-level=debug"
execCmd="java -showversion -jar diktat.jar --log-level debug"
tags = ["smokeTest"]
description = "SmokeTest"
suiteName = "SmokeTest"
Expand All @@ -8,7 +8,7 @@ expectedWarningsPattern = "// ;warn:?(.*):(\\d*): (.+)"

["fix and warn"]
["fix and warn".fix]
execFlags="--mode=fix"
execFlags="--mode fix"
["fix and warn".warn]
actualWarningsPattern = "(\\w+\\..+):(\\d+):(\\d+): (\\[.*\\].*)$"
exactWarningsMatch = false

0 comments on commit 5280a97

Please sign in to comment.