Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled no wild card rule (java.util.* as only exception) #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ complexity:
ignoreOverridden: true

formatting:
NoWildcardImports:
active: false
NoConsecutiveBlankLines:
excludes: [ '**/test/**']
Indentation:
Expand Down
5 changes: 3 additions & 2 deletions src/test/kotlin/com/octawizard/server/route/MockAuthConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import com.octawizard.server.route.MockAuthConfig.algorithm
import com.octawizard.server.route.MockAuthConfig.jwtAudience
import com.octawizard.server.route.MockAuthConfig.jwtIssuer
import com.octawizard.server.route.MockAuthConfig.jwtRealm
import io.ktor.auth.*
import io.ktor.auth.jwt.*
import io.ktor.auth.Authentication
import io.ktor.auth.jwt.JWTPrincipal
import io.ktor.auth.jwt.jwt
import java.time.Instant
import java.util.*

Expand Down
7 changes: 4 additions & 3 deletions src/test/kotlin/com/octawizard/server/route/UtilsKtTest.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.octawizard.server.route

import io.ktor.application.*
import io.ktor.http.*
import io.ktor.request.*
import io.ktor.application.ApplicationCall
import io.ktor.http.Parameters
import io.ktor.http.ParametersBuilder
import io.ktor.request.ApplicationRequest
import io.mockk.every
import io.mockk.mockk
import org.junit.jupiter.api.Assertions.assertEquals
Expand Down
9 changes: 7 additions & 2 deletions src/test/kotlin/com/octawizard/server/route/testUtils.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package com.octawizard.server.route

import com.octawizard.server.serialization.contextualSerializers
import io.ktor.http.*
import io.ktor.server.testing.*
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpMethod
import io.ktor.http.decodeURLQueryComponent
import io.ktor.server.testing.TestApplicationCall
import io.ktor.server.testing.TestApplicationEngine
import io.ktor.server.testing.setBody
import kotlinx.serialization.json.Json

val JsonSerde = Json {
Expand Down