Preparing report...

Report for gomodules.xyz/notify

B    Not bad!    Found 21 issues across 24 files

Tweet

gofmt70%

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!


golint16%

Golint is a linter for Go source code.

    • /gomodules.xyz/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 30: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported function Default should have comment or be unexported (golint)
    • Line 43: warning: exported function Load should have comment or be unexported (golint)
    • /gomodules.xyz/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 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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/notify/tiniyo/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 42: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported function Default should have comment or be unexported (golint)
    • Line 59: warning: exported function Load should have comment or be unexported (golint)
    • /gomodules.xyz/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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/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 22: warning: exported type ByVoice should have comment or be unexported (golint)
    • Line 29: warning: exported type ByChat should have comment or be unexported (golint)
    • Line 36: warning: exported type ByPush should have comment or be unexported (golint)
    • /gomodules.xyz/notify/mattermost/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 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)
    • /gomodules.xyz/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)
    • /gomodules.xyz/notify/slack/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)
    • /gomodules.xyz/notify/unified/notifier.go
    • Line 26: warning: exported const NotifyVia should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function Default should have comment or be unexported (golint)
    • Line 37: warning: exported function DefaultVia should have comment or be unexported (golint)
    • Line 67: warning: exported function Load should have comment or be unexported (golint)
    • Line 75: warning: exported function LoadVia should have comment or be unexported (golint)
    • Line 105: warning: exported function NotifyViaDefault should have comment or be unexported (golint)
    • Line 113: warning: exported function Notify should have comment or be unexported (golint)
    • /gomodules.xyz/notify/notify17/notify.go
    • Line 15: warning: exported const Notify17APIURL should have comment (or a comment on this block) 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 49: 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!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!