Skip to content

Commit ad385d8

Browse files
authored
chore(server): add detekt linter (#1891)
Going with the flow of #1890.
1 parent 670350b commit ad385d8

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

jit-binding-server/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
buildsrc.convention.`kotlin-jvm-server`
55
application
66
id("io.ktor.plugin") version "3.1.2"
7+
id("io.gitlab.arturbosch.detekt")
78
}
89

910
dependencies {

jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/Main.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ private val prometheusRegistry =
1818

1919
override fun prefix(): String = "github-actions-binding-server"
2020

21+
@Suppress("MagicNumber")
2122
override fun step() = Duration.ofSeconds(10)
2223
},
2324
)

jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/Plugins.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
1212

1313
fun Application.installPlugins(prometheusRegistry: PrometheusMeterRegistry) {
1414
install(CallId) {
15-
generate(15, "abcdefghijklmnopqrstuvwxyz0123456789")
15+
generate(length = 15, dictionary = "abcdefghijklmnopqrstuvwxyz0123456789")
1616
replyToHeader(HttpHeaders.XRequestId)
1717
}
1818

0 commit comments

Comments
 (0)