Unleash/unleash-client-go

View on GitHub
internal/strategies/remote_addresss.go

Summary

Maintainability
A
40 mins
Test Coverage
B
88%

Method remoteAddressStrategy.IsEnabled has 6 return statements (exceeds 4 allowed).
Open

func (s remoteAddressStrategy) IsEnabled(params map[string]interface{}, ctx *context.Context) bool {
    value, found := params[strategy.ParamIps]
    if !found {
        return false
    }
Severity: Major
Found in internal/strategies/remote_addresss.go - About 40 mins to fix

    exported func NewRemoteAddressStrategy returns unexported type *strategies.remoteAddressStrategy, which can be annoying to use
    Open

    func NewRemoteAddressStrategy() *remoteAddressStrategy {

    exported function NewRemoteAddressStrategy should have comment or be unexported
    Open

    func NewRemoteAddressStrategy() *remoteAddressStrategy {

    There are no issues that match your filters.

    Category
    Status