Showing 25 of 25 total issues
Function signalHandler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func signalHandler(n *nanny.Nanny, notifiers notifiers, store storage.Storage, w http.ResponseWriter, req *http.Request) error {
Function NewWebhook
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewWebhook(WebhookURL string,
WebhookURLAllClear string,
WebhookSecret string,
RequestTimeout time.Duration,
AllowInsecureTLS bool) (Notifier, error) {
Method twilio.NotifyAllClear
has 5 return statements (exceeds 4 allowed). Open
Open
func (n *twilio) NotifyAllClear(msg Message) error {
resp, exc, err := n.t.SendSMS(n.from, n.to, msg.FormatAllClear(), "", n.appSid)
if err != nil {
return errors.Wrap(err, "unable to send SMS via twilio")
}
Method twilio.Notify
has 5 return statements (exceeds 4 allowed). Open
Open
func (n *twilio) Notify(msg Message) error {
resp, exc, err := n.t.SendSMS(n.from, n.to, msg.Format(), "", n.appSid)
if err != nil {
return errors.Wrap(err, "unable to send SMS via twilio")
}
Function makeNotifiers
has 5 return statements (exceeds 4 allowed). Open
Open
func makeNotifiers() (map[string]notifier.Notifier, error) {
notifiers := make(map[string]notifier.Notifier)
if config.Stderr.Enabled {
notifiers["stderr"] = ¬ifier.StdErr{}
}