Report for github.com/appscode/go-notify

A    Great!    Found 14 issues across 14 files

Tweet

gofmt92%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint0%

Golint is a linter for Go source code.

    • go-notify/unified/notifier.go
    • Line 25: warning: exported const NotifyVia should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function Default should have comment or be unexported (golint)
    • Line 36: warning: exported function DefaultVia should have comment or be unexported (golint)
    • Line 66: warning: exported function Load should have comment or be unexported (golint)
    • Line 74: warning: exported function LoadVia should have comment or be unexported (golint)
    • go-notify/stride/chat.go
    • Line 13: warning: exported const UID should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported function Default should have comment or be unexported (golint)
    • Line 44: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/telegram/chat.go
    • Line 15: warning: exported const UID should have comment or be unexported (golint)
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported function Default should have comment or be unexported (golint)
    • Line 42: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/webhook/http.go
    • Line 12: warning: exported const UID should have comment or be unexported (golint)
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported function Default should have comment or be unexported (golint)
    • Line 46: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/mailgun/mail.go
    • Line 11: warning: exported const UID should have comment or be unexported (golint)
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported function Default should have comment or be unexported (golint)
    • Line 45: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/types.go
    • Line 3: warning: exported type ByEmail should have comment or be unexported (golint)
    • Line 15: warning: exported type BySMS should have comment or be unexported (golint)
    • Line 23: warning: exported type ByChat should have comment or be unexported (golint)
    • Line 30: warning: exported type ByPush should have comment or be unexported (golint)
    • go-notify/log/log.go
    • Line 12: warning: exported const UID should have comment or be unexported (golint)
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported function Default should have comment or be unexported (golint)
    • Line 38: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/pushover/notify.go
    • Line 16: warning: exported const PushoverApiURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported function Default should have comment or be unexported (golint)
    • Line 58: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/hipchat/chat.go
    • Line 17: warning: exported const UID should have comment or be unexported (golint)
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 40: warning: exported function Default should have comment or be unexported (golint)
    • Line 49: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/discord/chat.go
    • Line 11: warning: exported const UID should have comment or be unexported (golint)
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported function Default should have comment or be unexported (golint)
    • Line 38: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/slack/chat.go
    • Line 10: warning: exported const UID should have comment or be unexported (golint)
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported function Default should have comment or be unexported (golint)
    • Line 37: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/smtp/mail.go
    • Line 12: warning: exported const UID should have comment or be unexported (golint)
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported function Default should have comment or be unexported (golint)
    • Line 46: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/plivo/sms.go
    • Line 16: warning: exported const UID should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Options should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 38: warning: exported function Default should have comment or be unexported (golint)
    • Line 47: warning: exported function Load should have comment or be unexported (golint)
    • go-notify/twilio/sms.go
    • Line 15: warning: exported const UID should have comment or be unexported (golint)
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported function Default should have comment or be unexported (golint)
    • Line 46: warning: exported function Load should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!