DRSchlaubi/regnum

View on GitHub
server/src/main/kotlin/cc/hawkbot/regnum/server/core/internal/websocket/ConfigAuthorizer.kt

Summary

Maintainability
A
0 mins
Test Coverage

Method authorize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    override fun authorize(server: Server, wsSession: WsSession): CompletionStage<WsSession> {
        log.info("[WS] NodeImpl {} connected. Waiting for IDENTIFY", wsSession.id)
        val config = server.config
        val connectFuture = CompletableFuture<WsSession>()
        val future = server.eventWaiter.waitFor(WebSocketMessageEvent::class.java, {

    There are no issues that match your filters.

    Category
    Status