management/anomaly.go
Method AnomalyManager.CheckIP
has 5 return statements (exceeds 4 allowed). Open
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
}
exported type AnomalyManager should have comment or be unexported Open
Open
type AnomalyManager struct {
- Exclude checks
comment on exported method AnomalyManager.UnblockIP should be of the form "UnblockIP ..." Open
Open
// Unblock an IP address currently blocked by the multiple user accounts
- Exclude checks
comment on exported method AnomalyManager.CheckIP should be of the form "CheckIP ..." Open
Open
// Check if a given IP address is blocked via the multiple user accounts
- Exclude checks