kubenetworks/kubevpn

View on GitHub
pkg/controlplane/cache.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function ToListener has 123 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func ToListener(listenerName string, routeName string, port int32, p corev1.Protocol) *listener.Listener {
    var protocol core.SocketAddress_Protocol
    switch p {
    case corev1.ProtocolTCP:
        protocol = core.SocketAddress_TCP
Severity: Major
Found in pkg/controlplane/cache.go - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status