Preparing report...

Report for github.com/mavolin/adam

A+    Excellent!    Found 50 issues across 218 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!


gocyclo94%

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.

    • adam/pkg/impl/arg/channel_types.go
    • Line 514: warning: cyclomatic complexity 18 of function (voiceChannel).handleName() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 18 of function (voiceChannel).genChooserEmbed() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 16 of function (category).handleName() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • adam/pkg/impl/module/meta.go
    • Line 22: warning: exported method Meta.GetName should have comment or be unexported (golint)
    • Line 23: warning: exported method Meta.GetShortDescription should have comment or be unexported (golint)
    • Line 24: warning: exported method Meta.GetLongDescription should have comment or be unexported (golint)
    • adam/pkg/impl/command/meta.go
    • Line 47: warning: exported method Meta.GetName should have comment or be unexported (golint)
    • Line 48: warning: exported method Meta.GetAliases should have comment or be unexported (golint)
    • Line 49: warning: exported method Meta.GetShortDescription should have comment or be unexported (golint)
    • Line 50: warning: exported method Meta.GetLongDescription should have comment or be unexported (golint)
    • Line 51: warning: exported method Meta.GetExampleArgs should have comment or be unexported (golint)
    • Line 52: warning: exported method Meta.GetArgs should have comment or be unexported (golint)
    • Line 53: warning: exported method Meta.IsHidden should have comment or be unexported (golint)
    • Line 54: warning: exported method Meta.GetChannelTypes should have comment or be unexported (golint)
    • Line 55: warning: exported method Meta.GetBotPermissions should have comment or be unexported (golint)
    • Line 57: warning: exported method Meta.IsRestricted should have comment or be unexported (golint)
    • Line 65: warning: exported method Meta.GetThrottler should have comment or be unexported (golint)
    • adam/pkg/impl/command/localized_meta.go
    • Line 47: warning: exported method LocalizedMeta.GetName should have comment or be unexported (golint)
    • Line 48: warning: exported method LocalizedMeta.GetAliases should have comment or be unexported (golint)
    • Line 50: warning: exported method LocalizedMeta.GetShortDescription should have comment or be unexported (golint)
    • Line 59: warning: exported method LocalizedMeta.GetLongDescription should have comment or be unexported (golint)
    • Line 68: warning: exported method LocalizedMeta.GetExampleArgs should have comment or be unexported (golint)
    • Line 89: warning: exported method LocalizedMeta.GetArgs should have comment or be unexported (golint)
    • Line 90: warning: exported method LocalizedMeta.IsHidden should have comment or be unexported (golint)
    • Line 91: warning: exported method LocalizedMeta.GetChannelTypes should have comment or be unexported (golint)
    • Line 92: warning: exported method LocalizedMeta.GetBotPermissions should have comment or be unexported (golint)
    • Line 94: warning: exported method LocalizedMeta.IsRestricted should have comment or be unexported (golint)
    • Line 102: warning: exported method LocalizedMeta.GetThrottler should have comment or be unexported (golint)
    • adam/pkg/utils/mock/module.go
    • Line 8: warning: exported type Module should have comment or be unexported (golint)
    • Line 16: warning: exported method Module.Commands should have comment or be unexported (golint)
    • Line 17: warning: exported method Module.Modules should have comment or be unexported (golint)
    • Line 32: warning: exported type ModuleMeta should have comment or be unexported (golint)
    • Line 40: warning: exported method ModuleMeta.GetName should have comment or be unexported (golint)
    • Line 41: warning: exported method ModuleMeta.GetShortDescription should have comment or be unexported (golint)
    • Line 42: warning: exported method ModuleMeta.GetLongDescription should have comment or be unexported (golint)
    • adam/pkg/plugin/errors.go
    • Line 63: warning: exported var HandleArgumentError should have comment or be unexported (golint)
    • Line 161: warning: exported method BotPermissionsError.Is should have comment or be unexported (golint)
    • Line 176: warning: exported var HandleBotPermissionsError should have comment or be unexported (golint)
    • Line 245: warning: exported method ChannelTypeError.Is should have comment or be unexported (golint)
    • Line 260: warning: exported var HandleChannelTypeError should have comment or be unexported (golint)
    • Line 357: warning: exported var HandleRestrictionError should have comment or be unexported (golint)
    • Line 415: warning: exported var HandleThrottlingError should have comment or be unexported (golint)
    • adam/pkg/impl/arg/choice_type.go
    • Line 34: warning: exported method Choice.Name should have comment or be unexported (golint)
    • Line 39: warning: exported method Choice.Description should have comment or be unexported (golint)
    • Line 44: warning: exported method Choice.Parse should have comment or be unexported (golint)
    • Line 96: warning: exported method LocalizedChoice.Name should have comment or be unexported (golint)
    • Line 101: warning: exported method LocalizedChoice.Description should have comment or be unexported (golint)
    • Line 106: warning: exported method LocalizedChoice.Parse should have comment or be unexported (golint)
    • adam/pkg/bot/options.go
    • Line 362: warning: exported function DefaultThrottlerErrorCheck should have comment or be unexported (golint)
    • Line 367: warning: exported function DefaultGatewayErrorHandler should have comment or be unexported (golint)
    • Line 385: warning: exported function DefaultErrorHandler should have comment or be unexported (golint)
    • Line 396: warning: exported function DefaultPanicHandler should have comment or be unexported (golint)
    • adam/pkg/impl/replier/tracker.go
    • Line 101: warning: exported method Tracker.Reply should have comment or be unexported (golint)
    • Line 133: warning: exported method Tracker.ReplyDM should have comment or be unexported (golint)
    • Line 161: warning: exported method Tracker.Edit should have comment or be unexported (golint)
    • Line 201: warning: exported method Tracker.EditDM should have comment or be unexported (golint)
    • adam/pkg/impl/arg/comma_config.go
    • Line 43: warning: exported method CommaConfig.Parse should have comment or be unexported (golint)
    • Line 48: warning: exported method CommaConfig.Info should have comment or be unexported (golint)
    • Line 88: warning: exported method LocalizedCommaConfig.Parse should have comment or be unexported (golint)
    • Line 93: warning: exported method LocalizedCommaConfig.Info should have comment or be unexported (golint)
    • adam/pkg/impl/module/localized_meta.go
    • Line 22: warning: exported method LocalizedMeta.GetName should have comment or be unexported (golint)
    • Line 26: warning: exported method LocalizedMeta.GetShortDescription should have comment or be unexported (golint)
    • Line 35: warning: exported method LocalizedMeta.GetLongDescription should have comment or be unexported (golint)
    • adam/pkg/impl/module/module.go
    • Line 39: warning: exported method Module.Commands should have comment or be unexported (golint)
    • Line 43: warning: exported method Module.Modules should have comment or be unexported (golint)
    • adam/pkg/utils/mock/context.go
    • Line 29: warning: exported method DiscordDataProvider.ChannelAsync should have comment or be unexported (golint)
    • Line 35: warning: exported method DiscordDataProvider.GuildAsync should have comment or be unexported (golint)
    • Line 41: warning: exported method DiscordDataProvider.SelfAsync should have comment or be unexported (golint)
    • Line 62: warning: exported method PluginProvider.PluginRepositories should have comment or be unexported (golint)
    • Line 66: warning: exported method PluginProvider.Commands should have comment or be unexported (golint)
    • Line 76: warning: exported method PluginProvider.Modules should have comment or be unexported (golint)
    • Line 86: warning: exported method PluginProvider.Command should have comment or be unexported (golint)
    • Line 116: warning: exported method PluginProvider.Module should have comment or be unexported (golint)
    • Line 146: warning: exported method PluginProvider.FindCommand should have comment or be unexported (golint)
    • Line 151: warning: exported method PluginProvider.FindModule should have comment or be unexported (golint)
    • Line 156: warning: exported method PluginProvider.UnavailablePluginProviders should have comment or be unexported (golint)
    • Line 160: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 170: warning: exported function NewErrorHandler should have comment or be unexported (golint)
    • Line 174: warning: exported method ErrorHandler.ExpectError should have comment or be unexported (golint)
    • Line 179: warning: exported method ErrorHandler.ExpectSilentError should have comment or be unexported (golint)
    • Line 184: warning: exported method ErrorHandler.HandleError should have comment or be unexported (golint)
    • Line 211: warning: exported method ErrorHandler.HandleErrorSilently should have comment or be unexported (golint)
    • Line 238: warning: exported method ErrorHandler.Eval should have comment or be unexported (golint)
    • adam/pkg/impl/arg/time_types.go
    • Line 51: warning: exported var SimpleDuration should have comment or be unexported (golint)
    • Line 53: warning: exported method Duration.Name should have comment or be unexported (golint)
    • Line 58: warning: exported method Duration.Description should have comment or be unexported (golint)
    • Line 63: warning: exported method Duration.Parse should have comment or be unexported (golint)
    • Line 99: warning: exported method Duration.Default should have comment or be unexported (golint)
    • Line 127: warning: exported method Time.Name should have comment or be unexported (golint)
    • Line 132: warning: exported method Time.Description should have comment or be unexported (golint)
    • Line 147: warning: exported method Time.Parse should have comment or be unexported (golint)
    • Line 186: warning: exported method Time.Default should have comment or be unexported (golint)
    • Line 230: warning: exported method Date.Name should have comment or be unexported (golint)
    • Line 235: warning: exported method Date.Description should have comment or be unexported (golint)
    • Line 250: warning: exported method Date.Parse should have comment or be unexported (golint)
    • Line 300: warning: exported method Date.Default should have comment or be unexported (golint)
    • Line 327: warning: exported method DateTime.Name should have comment or be unexported (golint)
    • Line 332: warning: exported method DateTime.Description should have comment or be unexported (golint)
    • Line 347: warning: exported method DateTime.Parse should have comment or be unexported (golint)
    • Line 386: warning: exported method DateTime.Default should have comment or be unexported (golint)
    • adam/pkg/impl/command/help/help.go
    • Line 20: warning: exported var BaseEmbed should have comment or be unexported (golint)
    • Line 48: warning: exported type Options should have comment or be unexported (golint)
    • Line 113: warning: exported method Help.Invoke should have comment or be unexported (golint)
    • Line 243: warning: exported function DefaultArgFormatter should have comment or be unexported (golint)
    • adam/pkg/impl/arg/shellword_config.go
    • Line 52: warning: exported method ShellwordConfig.Parse should have comment or be unexported (golint)
    • Line 57: warning: exported method ShellwordConfig.Info should have comment or be unexported (golint)
    • Line 104: warning: exported method LocalizedShellwordConfig.Parse should have comment or be unexported (golint)
    • Line 109: warning: exported method LocalizedShellwordConfig.Info should have comment or be unexported (golint)
    • adam/pkg/impl/arg/text_types.go
    • Line 75: warning: exported method Text.Name should have comment or be unexported (golint)
    • Line 87: warning: exported method Text.Description should have comment or be unexported (golint)
    • Line 99: warning: exported method Text.Parse should have comment or be unexported (golint)
    • Line 127: warning: exported method Text.Default should have comment or be unexported (golint)
    • Line 180: warning: exported method Link.Name should have comment or be unexported (golint)
    • Line 185: warning: exported method Link.Description should have comment or be unexported (golint)
    • Line 190: warning: exported method Link.Parse should have comment or be unexported (golint)
    • Line 207: warning: exported method Link.Default should have comment or be unexported (golint)
    • Line 277: warning: exported var SimpleAlphanumericID should have comment or be unexported (golint)
    • Line 281: warning: exported method AlphanumericID.Name should have comment or be unexported (golint)
    • Line 293: warning: exported method AlphanumericID.Description should have comment or be unexported (golint)
    • Line 305: warning: exported method AlphanumericID.Parse should have comment or be unexported (golint)
    • Line 333: warning: exported method AlphanumericID.Default should have comment or be unexported (golint)
    • adam/pkg/utils/mock/command.go
    • Line 11: warning: exported type Command should have comment or be unexported (golint)
    • Line 18: warning: exported method Command.Invoke should have comment or be unexported (golint)
    • Line 70: warning: exported type CommandMeta should have comment or be unexported (golint)
    • Line 88: warning: exported method CommandMeta.GetName should have comment or be unexported (golint)
    • Line 89: warning: exported method CommandMeta.GetAliases should have comment or be unexported (golint)
    • Line 90: warning: exported method CommandMeta.GetShortDescription should have comment or be unexported (golint)
    • Line 91: warning: exported method CommandMeta.GetLongDescription should have comment or be unexported (golint)
    • Line 92: warning: exported method CommandMeta.GetArgs should have comment or be unexported (golint)
    • Line 93: warning: exported method CommandMeta.GetExampleArgs should have comment or be unexported (golint)
    • Line 94: warning: exported method CommandMeta.IsHidden should have comment or be unexported (golint)
    • Line 95: warning: exported method CommandMeta.GetChannelTypes should have comment or be unexported (golint)
    • Line 96: warning: exported method CommandMeta.GetBotPermissions should have comment or be unexported (golint)
    • Line 98: warning: exported method CommandMeta.IsRestricted should have comment or be unexported (golint)
    • Line 106: warning: exported method CommandMeta.GetThrottler should have comment or be unexported (golint)
    • Line 108: warning: exported type ArgConfig should have comment or be unexported (golint)
    • Line 119: warning: exported method ArgConfig.Parse should have comment or be unexported (golint)
    • adam/pkg/impl/arg/numeric_types.go
    • Line 59: warning: exported method Integer.Name should have comment or be unexported (golint)
    • Line 64: warning: exported method Integer.Description should have comment or be unexported (golint)
    • Line 69: warning: exported method Integer.Parse should have comment or be unexported (golint)
    • Line 99: warning: exported method Integer.Default should have comment or be unexported (golint)
    • Line 143: warning: exported method Decimal.Name should have comment or be unexported (golint)
    • Line 148: warning: exported method Decimal.Description should have comment or be unexported (golint)
    • Line 153: warning: exported method Decimal.Parse should have comment or be unexported (golint)
    • Line 183: warning: exported method Decimal.Default should have comment or be unexported (golint)
    • Line 224: warning: exported method NumericID.Name should have comment or be unexported (golint)
    • Line 236: warning: exported method NumericID.Description should have comment or be unexported (golint)
    • Line 248: warning: exported method NumericID.Parse should have comment or be unexported (golint)
    • Line 269: warning: exported method NumericID.Default should have comment or be unexported (golint)
    • adam/pkg/impl/arg/raw_config.go
    • Line 25: warning: exported method Raw.Parse should have comment or be unexported (golint)
    • Line 33: warning: exported method Raw.Info should have comment or be unexported (golint)
    • Line 64: warning: exported method LocalizedRaw.Parse should have comment or be unexported (golint)
    • Line 72: warning: exported method LocalizedRaw.Info 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!