Preparing report...

Report for github.com/zekrotja/ken

(v0.11.1)

A+    Excellent!    Found 23 issues across 47 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!


golint55%

Golint is a linter for Go source code.

    • ken/examples/subcommands/commands/subs.go
    • Line 10: warning: exported type SubsCommand should have comment or be unexported (golint)
    • Line 17: warning: exported method SubsCommand.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method SubsCommand.Description should have comment or be unexported (golint)
    • Line 25: warning: exported method SubsCommand.Version should have comment or be unexported (golint)
    • Line 29: warning: exported method SubsCommand.Type should have comment or be unexported (golint)
    • Line 33: warning: exported method SubsCommand.Options should have comment or be unexported (golint)
    • Line 64: warning: exported method SubsCommand.IsDmCapable should have comment or be unexported (golint)
    • Line 68: warning: exported method SubsCommand.Run should have comment or be unexported (golint)
    • ken/state/dgrs.go
    • Line 21: warning: exported method Dgrs.SelfUser should have comment or be unexported (golint)
    • Line 26: warning: exported method Dgrs.Channel should have comment or be unexported (golint)
    • Line 31: warning: exported method Dgrs.Guild should have comment or be unexported (golint)
    • Line 36: warning: exported method Dgrs.Role should have comment or be unexported (golint)
    • Line 41: warning: exported method Dgrs.User should have comment or be unexported (golint)
    • ken/examples/usermsgcommands/commands/delete.go
    • Line 8: warning: exported type DeleteMessageCommand should have comment or be unexported (golint)
    • Line 14: warning: exported method DeleteMessageCommand.TypeMessage should have comment or be unexported (golint)
    • Line 16: warning: exported method DeleteMessageCommand.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method DeleteMessageCommand.Description should have comment or be unexported (golint)
    • Line 24: warning: exported method DeleteMessageCommand.Run should have comment or be unexported (golint)
    • ken/examples/usermsgcommands/commands/info.go
    • Line 8: warning: exported type InfoUserCommand should have comment or be unexported (golint)
    • Line 14: warning: exported method InfoUserCommand.TypeUser should have comment or be unexported (golint)
    • Line 16: warning: exported method InfoUserCommand.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method InfoUserCommand.Description should have comment or be unexported (golint)
    • Line 24: warning: exported method InfoUserCommand.Run should have comment or be unexported (golint)
    • ken/examples/help/commands/test.go
    • Line 9: warning: exported type TestCommand should have comment or be unexported (golint)
    • Line 17: warning: exported method TestCommand.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method TestCommand.Description should have comment or be unexported (golint)
    • Line 25: warning: exported method TestCommand.Version should have comment or be unexported (golint)
    • Line 29: warning: exported method TestCommand.Type should have comment or be unexported (golint)
    • Line 33: warning: exported method TestCommand.Options should have comment or be unexported (golint)
    • Line 48: warning: exported method TestCommand.IsDmCapable should have comment or be unexported (golint)
    • Line 52: warning: exported method TestCommand.Help should have comment or be unexported (golint)
    • Line 52: warning: receiver name C should be consistent with previous receiver name c for TestCommand (golint)
    • Line 60: warning: exported method TestCommand.Run should have comment or be unexported (golint)
    • ken/examples/basic/commands/test.go
    • Line 8: warning: exported type TestCommand should have comment or be unexported (golint)
    • Line 15: warning: exported method TestCommand.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method TestCommand.Description should have comment or be unexported (golint)
    • Line 23: warning: exported method TestCommand.Version should have comment or be unexported (golint)
    • Line 27: warning: exported method TestCommand.Type should have comment or be unexported (golint)
    • Line 31: warning: exported method TestCommand.Options should have comment or be unexported (golint)
    • Line 42: warning: exported method TestCommand.IsDmCapable should have comment or be unexported (golint)
    • Line 46: warning: exported method TestCommand.Run should have comment or be unexported (golint)
    • ken/examples/ratelimit/commands/test.go
    • Line 11: warning: exported type TestCommand should have comment or be unexported (golint)
    • Line 19: warning: exported method TestCommand.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method TestCommand.Description should have comment or be unexported (golint)
    • Line 27: warning: exported method TestCommand.Version should have comment or be unexported (golint)
    • Line 31: warning: exported method TestCommand.Type should have comment or be unexported (golint)
    • Line 35: warning: exported method TestCommand.Options should have comment or be unexported (golint)
    • Line 46: warning: exported method TestCommand.IsDmCapable should have comment or be unexported (golint)
    • Line 50: warning: exported method TestCommand.LimiterBurst should have comment or be unexported (golint)
    • Line 54: warning: exported method TestCommand.LimiterRestoration should have comment or be unexported (golint)
    • Line 58: warning: exported method TestCommand.IsLimiterGlobal should have comment or be unexported (golint)
    • Line 62: warning: exported method TestCommand.Run should have comment or be unexported (golint)
    • ken/examples/middlewares/middlewares/permissions.go
    • Line 17: warning: exported type RequiresRoleCommand should have comment or be unexported (golint)
    • Line 21: warning: exported type PermissionsMiddleware should have comment or be unexported (golint)
    • Line 29: warning: exported method PermissionsMiddleware.Before should have comment or be unexported (golint)
    • ken/errors.go
    • Line 6: warning: exported var ErrEmptyCommandName should have comment or be unexported (golint)
    • ken/store/local.go
    • Line 29: warning: exported method LocalCommandStore.Store should have comment or be unexported (golint)
    • Line 39: warning: exported method LocalCommandStore.Load should have comment or be unexported (golint)
    • ken/examples/middlewares/commands/kick.go
    • Line 11: warning: exported type KickCommand should have comment or be unexported (golint)
    • Line 18: warning: exported method KickCommand.Name should have comment or be unexported (golint)
    • Line 22: warning: exported method KickCommand.Description should have comment or be unexported (golint)
    • Line 26: warning: exported method KickCommand.Version should have comment or be unexported (golint)
    • Line 30: warning: exported method KickCommand.Type should have comment or be unexported (golint)
    • Line 34: warning: exported method KickCommand.Options should have comment or be unexported (golint)
    • Line 51: warning: exported method KickCommand.RequiresRole should have comment or be unexported (golint)
    • Line 55: warning: exported method KickCommand.Run should have comment or be unexported (golint)
    • ken/examples/cmdinfo/commands/test.go
    • Line 8: warning: exported type TestCommand should have comment or be unexported (golint)
    • Line 16: warning: exported method TestCommand.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method TestCommand.Description should have comment or be unexported (golint)
    • Line 24: warning: exported method TestCommand.Version should have comment or be unexported (golint)
    • Line 28: warning: exported method TestCommand.Type should have comment or be unexported (golint)
    • Line 32: warning: exported method TestCommand.Options should have comment or be unexported (golint)
    • Line 43: warning: exported method TestCommand.IsDmCapable should have comment or be unexported (golint)
    • Line 47: warning: exported method TestCommand.ExtraString should have comment or be unexported (golint)
    • Line 51: warning: exported method TestCommand.ExtraInt should have comment or be unexported (golint)
    • Line 55: warning: exported method TestCommand.Run should have comment or be unexported (golint)
    • ken/command.go
    • Line 9: warning: exported type Command should have comment or be unexported (golint)
    • ken/context.go
    • Line 162: warning: comment on exported method Ctx.Guild should be of the form "Guild ..." (golint)
    • ken/state/internal.go
    • Line 16: warning: exported method Internal.SelfUser should have comment or be unexported (golint)
    • Line 21: warning: exported method Internal.Channel should have comment or be unexported (golint)
    • Line 35: warning: exported method Internal.Guild should have comment or be unexported (golint)
    • Line 49: warning: exported method Internal.Role should have comment or be unexported (golint)
    • Line 68: warning: exported method Internal.User should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words