Preparing report...

Report for github.com/DiscordBotList/go-dbl

A+    Excellent!    Found 9 issues across 18 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint50%

Golint is a linter for Go source code.

    • go-dbl/const.go
    • Line 4: warning: exported const BaseURL should have comment (or a comment on this block) or be unexported (golint)
    • go-dbl/errors.go
    • Line 6: warning: exported var ErrRequestFailed should have comment or be unexported (golint)
    • go-dbl/users.go
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 50: warning: exported type Social should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method Client.GetUser should be of the form "GetUser ..." (golint)
    • go-dbl/widget_large.go
    • Line 7: warning: exported type LargeWidget should have comment or be unexported (golint)
    • Line 12: warning: exported function NewLargeWidget should have comment or be unexported (golint)
    • Line 20: warning: exported method LargeWidget.BotID should have comment or be unexported (golint)
    • Line 26: warning: exported method LargeWidget.Extension should have comment or be unexported (golint)
    • Line 32: warning: exported method LargeWidget.TopColor should have comment or be unexported (golint)
    • Line 38: warning: exported method LargeWidget.MiddleColor should have comment or be unexported (golint)
    • Line 44: warning: exported method LargeWidget.UsernameColor should have comment or be unexported (golint)
    • Line 50: warning: exported method LargeWidget.CertifiedColor should have comment or be unexported (golint)
    • Line 56: warning: exported method LargeWidget.DataColor should have comment or be unexported (golint)
    • Line 62: warning: exported method LargeWidget.LabelColor should have comment or be unexported (golint)
    • Line 68: warning: exported method LargeWidget.HighlightColor should have comment or be unexported (golint)
    • Line 74: warning: exported method LargeWidget.Generate should have comment or be unexported (golint)
    • go-dbl/bots.go
    • Line 11: warning: exported type Bot should have comment or be unexported (golint)
    • Line 85: warning: exported type GetBotsPayload should have comment or be unexported (golint)
    • Line 104: warning: exported type GetBotsResult should have comment or be unexported (golint)
    • Line 122: warning: exported type BotStats should have comment or be unexported (golint)
    • Line 137: warning: exported type BotStatsPayload should have comment or be unexported (golint)
    • Line 148: warning: comment on exported method Client.GetBots should be of the form "GetBots ..." (golint)
    • Line 217: warning: comment on exported method Client.GetBot should be of the form "GetBot ..." (golint)
    • Line 256: warning: comment on exported method Client.GetVotes should be of the form "GetVotes ..." (golint)
    • Line 299: warning: comment on exported method Client.HasUserVoted should be of the form "HasUserVoted ..." (golint)
    • Line 346: warning: comment on exported method Client.GetBotStats should be of the form "GetBotStats ..." (golint)
    • Line 385: warning: comment on exported method Client.PostBotStats should be of the form "PostBotStats ..." (golint)
    • go-dbl/webhook.go
    • Line 10: warning: exported type ListenerFunc should have comment or be unexported (golint)
    • Line 12: warning: exported type WebhookListener should have comment or be unexported (golint)
    • Line 18: warning: exported type WebhookPayload should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function NewListener should be of the form "NewListener ..." (golint)
    • Line 60: warning: comment on exported method WebhookListener.Serve should be of the form "Serve ..." (golint)
    • go-dbl/weekend.go
    • Line 11: warning: comment on exported method Client.IsMultiplierActive should be of the form "IsMultiplierActive ..." (golint)
    • go-dbl/widget_general.go
    • Line 8: warning: exported type Extension should have comment or be unexported (golint)
    • Line 11: warning: exported const SVG should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Widget should have comment or be unexported (golint)
    • Line 21: warning: exported type WidgetData should have comment or be unexported (golint)
    • Line 31: warning: exported method Extension.Ext should have comment or be unexported (golint)
    • go-dbl/widget_small.go
    • Line 5: warning: exported type WidgetType should have comment or be unexported (golint)
    • Line 8: warning: exported const WidgetStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type SmallWidget should have comment or be unexported (golint)
    • Line 45: warning: exported function NewSmallWidget should have comment or be unexported (golint)
    • Line 53: warning: exported method SmallWidget.BotID should have comment or be unexported (golint)
    • Line 59: warning: exported method SmallWidget.Extension should have comment or be unexported (golint)
    • Line 65: warning: exported method SmallWidget.WidgetType should have comment or be unexported (golint)
    • Line 71: warning: exported method SmallWidget.AvatarBackground should have comment or be unexported (golint)
    • Line 77: warning: exported method SmallWidget.LeftColor should have comment or be unexported (golint)
    • Line 83: warning: exported method SmallWidget.RightColor should have comment or be unexported (golint)
    • Line 89: warning: exported method SmallWidget.LeftTextColor should have comment or be unexported (golint)
    • Line 95: warning: exported method SmallWidget.RightTextColor should have comment or be unexported (golint)
    • Line 101: warning: exported method SmallWidget.Generate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!