go-auth0/auth0

View on GitHub
management/anomaly.go

Summary

Maintainability
A
35 mins
Test Coverage
D
68%

Method AnomalyManager.CheckIP has 5 return statements (exceeds 4 allowed).
Open

func (m *AnomalyManager) CheckIP(ip string, opts ...RequestOption) (isBlocked bool, err error) {
    req, err := m.NewRequest("GET", m.URI("anomaly", "blocks", "ips", ip), nil, opts...)
    if err != nil {
        return false, err
    }
Severity: Major
Found in management/anomaly.go - About 35 mins to fix

    exported type AnomalyManager should have comment or be unexported
    Open

    type AnomalyManager struct {
    Severity: Minor
    Found in management/anomaly.go by golint

    comment on exported method AnomalyManager.UnblockIP should be of the form "UnblockIP ..."
    Open

    // Unblock an IP address currently blocked by the multiple user accounts
    Severity: Minor
    Found in management/anomaly.go by golint

    comment on exported method AnomalyManager.CheckIP should be of the form "CheckIP ..."
    Open

    // Check if a given IP address is blocked via the multiple user accounts
    Severity: Minor
    Found in management/anomaly.go by golint

    There are no issues that match your filters.

    Category
    Status