Preparing report...

Report for github.com/Dark-Night-Base/MCDaemon-go

A    Great!    Found 40 issues across 43 files

Tweet

gofmt88%

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!


gocyclo95%

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.


golint6%

Golint is a linter for Go source code.

    • MCDaemon-go/command/playerGroup.go
    • Line 7: warning: exported var Group should have comment or be unexported (golint)
    • Line 9: warning: exported type PlayerGroup should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method PlayerGroup.AddPlayer should be of the form "AddPlayer ..." (golint)
    • Line 26: warning: comment on exported method PlayerGroup.DelPlayer should be of the form "DelPlayer ..." (golint)
    • Line 44: warning: comment on exported method PlayerGroup.HasPlayer should be of the form "HasPlayer ..." (golint)
    • Line 49: warning: exported method PlayerGroup.GetPlayer should have comment or be unexported (golint)
    • MCDaemon-go/config/config.go
    • Line 27: warning: comment on exported function GetStartConfig should be of the form "GetStartConfig ..." (golint)
    • Line 86: warning: comment on exported function GetPlugins should be of the form "GetPlugins ..." (golint)
    • Line 87: warning: don't use underscores in Go names; func parameter is_rebuild should be isRebuild (golint)
    • Line 107: warning: comment on exported function GetPluginName should be of the form "GetPluginName ..." (golint)
    • Line 113: warning: comment on exported function GetPluginCfg should be of the form "GetPluginCfg ..." (golint)
    • Line 114: warning: don't use underscores in Go names; func parameter is_rebuild should be isRebuild (golint)
    • Line 125: warning: exported function SetEula should have comment or be unexported (golint)
    • MCDaemon-go/plugins/ChatPlugin/webSocketClient.go
    • Line 1: warning: don't use MixedCaps in package name; ChatPlugin should be chatplugin (golint)
    • Line 12: warning: exported type WSClient should have comment or be unexported (golint)
    • Line 23: warning: exported method WSClient.Start should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: exported method WSClient.Send should have comment or be unexported (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 88: warning: exported method WSClient.GetId should have comment or be unexported (golint)
    • Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 92: warning: exported method WSClient.GetName should have comment or be unexported (golint)
    • Line 92: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 96: warning: exported method WSClient.IsAlive should have comment or be unexported (golint)
    • Line 96: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • MCDaemon-go/plugins/AutoBackupPlugin.go
    • Line 24: warning: exported type AutoBackup should have comment or be unexported (golint)
    • Line 29: warning: exported method AutoBackup.Handle should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; var interval_new should be intervalNew (golint)
    • Line 141: warning: exported method AutoBackup.Init should have comment or be unexported (golint)
    • Line 146: warning: exported method AutoBackup.Close should have comment or be unexported (golint)
    • MCDaemon-go/plugins/HerePlugin.go
    • Line 14: warning: exported type HerePlugin should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; struct field dim_convert should be dimConvert (golint)
    • Line 20: warning: exported method HerePlugin.Handle should have comment or be unexported (golint)
    • Line 64: warning: exported method HerePlugin.Init should have comment or be unexported (golint)
    • Line 72: warning: exported method HerePlugin.Close should have comment or be unexported (golint)
    • MCDaemon-go/plugins/ChatPlugin/ChatPlugin.go
    • Line 1: warning: don't use MixedCaps in package name; ChatPlugin should be chatplugin (golint)
    • Line 15: warning: exported var WSsvr should have comment or be unexported (golint)
    • Line 28: warning: exported const ChanMaxSize should have comment or be unexported (golint)
    • Line 29: warning: exported const LocalServerId should have comment or be unexported (golint)
    • Line 30: warning: exported const MinecraftServerId should have comment or be unexported (golint)
    • Line 44: warning: exported type ChatPlugin should have comment or be unexported (golint)
    • Line 46: warning: exported method ChatPlugin.Handle should have comment or be unexported (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 78: warning: exported method ChatPlugin.Init should have comment or be unexported (golint)
    • Line 78: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 91: warning: exported method ChatPlugin.Close should have comment or be unexported (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 219: warning: comment on exported function SendMessage should be of the form "SendMessage ..." (golint)
    • MCDaemon-go/server/server.go
    • Line 21: warning: exported type Server should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method Server.Init should be of the form "Init ..." (golint)
    • Line 71: warning: don't use underscores in Go names; method run_process should be runProcess (golint)
    • Line 75: warning: exported method Server.Getinfo should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method Server.WriteLog should be of the form "WriteLog ..." (golint)
    • Line 84: warning: comment on exported method Server.Restart should be of the form "Restart ..." (golint)
    • Line 96: warning: comment on exported method Server.Start should be of the form "Start ..." (golint)
    • Line 111: warning: comment on exported method Server.ReloadConf should be of the form "ReloadConf ..." (golint)
    • Line 116: warning: comment on exported method Server.Clone should be of the form "Clone ..." (golint)
    • Line 137: warning: comment on exported method Server.GetPort should be of the form "GetPort ..." (golint)
    • Line 142: warning: comment on exported method Server.GetName should be of the form "GetName ..." (golint)
    • Line 147: warning: comment on exported method Server.CloseInContainer should be of the form "CloseInContainer ..." (golint)
    • Line 154: warning: comment on exported method Server.Close should be of the form "Close ..." (golint)
    • Line 161: warning: comment on exported method Server.End should be of the form "End ..." (golint)
    • MCDaemon-go/plugins/TpsPlugin.go
    • Line 10: warning: exported type TpsPlugin should have comment or be unexported (golint)
    • Line 12: warning: exported method TpsPlugin.Handle should have comment or be unexported (golint)
    • Line 31: warning: exported method TpsPlugin.Init should have comment or be unexported (golint)
    • Line 34: warning: exported method TpsPlugin.Close should have comment or be unexported (golint)
    • MCDaemon-go/command/text.go
    • Line 5: warning: exported type Text should have comment or be unexported (golint)
    • Line 10: warning: exported function JsonEncode should have comment or be unexported (golint)
    • MCDaemon-go/plugins/ChatPlugin/webSocketServer.go
    • Line 1: warning: package comment should be of the form "Package ChatPlugin ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; ChatPlugin should be chatplugin (golint)
    • Line 20: warning: exported type WSServerClient should have comment or be unexported (golint)
    • Line 25: warning: exported type WSServer should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 87: warning: comment on exported method WSServer.SendtoClient should be of the form "SendtoClient ..." (golint)
    • Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 106: warning: comment on exported method WSServer.Send should be of the form "Send ..." (golint)
    • Line 107: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 124: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 135: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 144: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 156: warning: exported method WSServer.Start should have comment or be unexported (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 166: warning: exported method WSServer.GetId should have comment or be unexported (golint)
    • Line 166: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 170: warning: exported method WSServer.GetName should have comment or be unexported (golint)
    • Line 170: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 174: warning: exported method WSServer.IsAlive should have comment or be unexported (golint)
    • Line 174: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • MCDaemon-go/plugins/ImagePlugin.go
    • Line 20: warning: exported type ImagePlugin should have comment or be unexported (golint)
    • Line 22: warning: exported method ImagePlugin.Handle should have comment or be unexported (golint)
    • Line 31: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 85: warning: exported method ImagePlugin.Init should have comment or be unexported (golint)
    • Line 88: warning: exported method ImagePlugin.Close should have comment or be unexported (golint)
    • Line 88: warning: receiver name hp should be consistent with previous receiver name lp for ImagePlugin (golint)
    • MCDaemon-go/server/plugin.go
    • Line 11: warning: comment on exported method Server.RunParsers should be of the form "RunParsers ..." (golint)
    • Line 26: warning: comment on exported method Server.RunPlugin should be of the form "RunPlugin ..." (golint)
    • Line 32: warning: comment on exported method Server.RunUniquePlugin should be of the form "RunUniquePlugin ..." (golint)
    • Line 49: warning: comment on exported method Server.GetPluginList should be of the form "GetPluginList ..." (golint)
    • Line 54: warning: comment on exported method Server.GetDisablePluginList should be of the form "GetDisablePluginList ..." (golint)
    • Line 59: warning: comment on exported method Server.GetParserList should be of the form "GetParserList ..." (golint)
    • Line 64: warning: comment on exported method Server.RunPluginClose should be of the form "RunPluginClose ..." (golint)
    • MCDaemon-go/server/stdout.go
    • Line 17: warning: comment on exported method Server.WaitEndLoading should be of the form "WaitEndLoading ..." (golint)
    • Line 39: warning: comment on exported method Server.Run should be of the form "Run ..." (golint)
    • MCDaemon-go/plugins/SDChatPlugin.go
    • Line 18: warning: exported type SDChatPlugin should have comment or be unexported (golint)
    • Line 20: warning: exported method SDChatPlugin.Handle should have comment or be unexported (golint)
    • Line 48: warning: exported method SDChatPlugin.Init should have comment or be unexported (golint)
    • Line 51: warning: exported method SDChatPlugin.Close should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function LightEncode should be of the form "LightEncode ..." (golint)
    • MCDaemon-go/plugins/hotPlugin.go
    • Line 11: warning: comment on exported type HotPlugin should be of the form "HotPlugin ..." (with optional leading article) (golint)
    • Line 16: warning: exported method HotPlugin.Handle should have comment or be unexported (golint)
    • Line 45: warning: exported method HotPlugin.Init should have comment or be unexported (golint)
    • Line 48: warning: exported method HotPlugin.Close should have comment or be unexported (golint)
    • MCDaemon-go/container/Container.go
    • Line 15: warning: comment on exported function GetInstance should be of the form "GetInstance ..." (golint)
    • Line 24: warning: exported type Container should have comment or be unexported (golint)
    • Line 30: warning: exported method Container.Init should have comment or be unexported (golint)
    • Line 34: warning: exported method Container.Add should have comment or be unexported (golint)
    • Line 44: warning: exported method Container.Del should have comment or be unexported (golint)
    • Line 54: warning: exported method Container.GetRuntimeServer should have comment or be unexported (golint)
    • Line 58: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 64: warning: exported method Container.IsRuntime should have comment or be unexported (golint)
    • MCDaemon-go/lib/log.go
    • Line 33: warning: comment on exported function WriteDevelopLog should be of the form "WriteDevelopLog ..." (golint)
    • Line 62: warning: comment on exported function WriteRuntimeLog should be of the form "WriteRuntimeLog ..." (golint)
    • MCDaemon-go/plugins/ExampleYinyinPlugin.go
    • Line 15: warning: exported type Yinyin should have comment or be unexported (golint)
    • Line 18: warning: exported method Yinyin.Handle should have comment or be unexported (golint)
    • Line 22: warning: exported method Yinyin.Init should have comment or be unexported (golint)
    • Line 25: warning: exported method Yinyin.Close should have comment or be unexported (golint)
    • MCDaemon-go/plugins/StatsHelperPlugin.go
    • Line 15: warning: exported type StatsHelper should have comment or be unexported (golint)
    • Line 19: warning: exported method StatsHelper.Handle should have comment or be unexported (golint)
    • Line 59: warning: exported method StatsHelper.Init should have comment or be unexported (golint)
    • Line 64: warning: exported method StatsHelper.Close should have comment or be unexported (golint)
    • MCDaemon-go/plugins/BackupPlugin/BackupPlugin.go
    • Line 1: warning: don't use MixedCaps in package name; BackupPlugin should be backupplugin (golint)
    • Line 14: warning: exported type BackupPlugin should have comment or be unexported (golint)
    • Line 18: warning: exported method BackupPlugin.Handle should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; var server_path should be serverPath (golint)
    • Line 50: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 67: warning: exported method BackupPlugin.Init should have comment or be unexported (golint)
    • Line 70: warning: exported method BackupPlugin.Close should have comment or be unexported (golint)
    • MCDaemon-go/server/stdin.go
    • Line 9: warning: exported method Server.Say should have comment or be unexported (golint)
    • Line 13: warning: exported method Server.Tell should have comment or be unexported (golint)
    • Line 38: warning: exported method Server.Execute should have comment or be unexported (golint)
    • MCDaemon-go/plugins/BasePlugin.go
    • Line 13: warning: exported type BasePlugin should have comment or be unexported (golint)
    • Line 16: warning: exported method BasePlugin.Handle should have comment or be unexported (golint)
    • Line 52: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 58: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 72: warning: exported method BasePlugin.Init should have comment or be unexported (golint)
    • Line 75: warning: exported method BasePlugin.Close should have comment or be unexported (golint)
    • MCDaemon-go/plugins/PluginMap.go
    • Line 8: warning: exported type PluginMap should have comment or be unexported (golint)
    • Line 10: warning: comment on exported method PluginMap.GetHotPlugins should be of the form "GetHotPlugins ..." (golint)
    • Line 11: warning: don't use underscores in Go names; method parameter is_reload should be isReload (golint)
    • Line 18: warning: comment on exported method PluginMap.RegisterPlugin should be of the form "RegisterPlugin ..." (golint)
    • Line 23: warning: comment on exported method PluginMap.DelPlugin should be of the form "DelPlugin ..." (golint)
    • MCDaemon-go/plugins/WarnPlugin.go
    • Line 16: warning: exported type WarnPlugin should have comment or be unexported (golint)
    • Line 18: warning: exported method WarnPlugin.Handle should have comment or be unexported (golint)
    • Line 45: warning: exported method WarnPlugin.Init should have comment or be unexported (golint)
    • Line 48: warning: exported method WarnPlugin.Close 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!