Коммит 7033c04d создал по автору leonid.stashevsky's avatar leonid.stashevsky Зафиксировано автором Leonid Stashevsky
Просмотр файлов

Fix codestyle

владелец 785027bb
...@@ -10,11 +10,10 @@ fun Project.configureCodestyle() { ...@@ -10,11 +10,10 @@ fun Project.configureCodestyle() {
kotlinter.apply { kotlinter.apply {
ignoreFailures = true ignoreFailures = true
reporters = arrayOf("checkstyle", "plain") reporters = arrayOf("checkstyle", "plain")
experimentalRules = true experimentalRules = false
disabledRules = arrayOf( disabledRules = arrayOf(
"no-wildcard-imports", "no-wildcard-imports",
"experimental:spacing-between-declarations-with-annotations", "indent"
"experimental:enum-entry-name-case"
) )
} }
} }
...@@ -5,7 +5,7 @@ coroutines-version = "1.6.1" ...@@ -5,7 +5,7 @@ coroutines-version = "1.6.1"
atomicfu-version = "0.17.1" atomicfu-version = "0.17.1"
serialization-version = "1.3.2" serialization-version = "1.3.2"
validator-version = "0.8.0" validator-version = "0.8.0"
ktlint-version = "3.6.0" ktlint-version = "3.10.0"
netty-version = "4.1.74.Final" netty-version = "4.1.74.Final"
netty-tcnative-version = "2.0.45.Final" netty-tcnative-version = "2.0.45.Final"
......
...@@ -125,7 +125,6 @@ internal suspend fun parseHeaders( ...@@ -125,7 +125,6 @@ internal suspend fun parseHeaders(
headers.put(nameHash, valueHash, nameStart, nameEnd, valueStart, valueEnd) headers.put(nameHash, valueHash, nameStart, nameEnd, valueStart, valueEnd)
} }
val host = headers[HttpHeaders.Host] val host = headers[HttpHeaders.Host]
if (host != null) { if (host != null) {
validateHostHeader(host) validateHostHeader(host)
......
...@@ -57,7 +57,6 @@ class RequestParserTest { ...@@ -57,7 +57,6 @@ class RequestParserTest {
""".trimIndent() """.trimIndent()
assertFailsWith<ParserException> { assertFailsWith<ParserException> {
parseRequest(ByteReadChannel(case)) parseRequest(ByteReadChannel(case))
} }
......
...@@ -11,7 +11,8 @@ import kotlin.test.* ...@@ -11,7 +11,8 @@ import kotlin.test.*
class MultiWorkerDispatcherTest { class MultiWorkerDispatcherTest {
private val dispatcher = Dispatchers.createFixedThreadDispatcher( private val dispatcher = Dispatchers.createFixedThreadDispatcher(
name = "CLIENT TEST DISPATCHER", threads = 4 name = "CLIENT TEST DISPATCHER",
threads = 4
) )
@Test @Test
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать