Preparing report...

Report for github.com/mudclient/go-mud

A+    Excellent!    Found 8 issues across 11 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!


golint27%

Golint is a linter for Go source code.

    • go-mud/lua-api/lua.go
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 24: warning: exported type API should have comment or be unexported (golint)
    • Line 37: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 44: warning: exported method API.Init should have comment or be unexported (golint)
    • Line 52: warning: exported method API.SetScreen should have comment or be unexported (golint)
    • Line 56: warning: exported method API.SetMud should have comment or be unexported (golint)
    • Line 60: warning: exported method API.Reload should have comment or be unexported (golint)
    • Line 142: warning: exported method API.OnReceive should have comment or be unexported (golint)
    • Line 156: warning: exported method API.OnSend should have comment or be unexported (golint)
    • Line 175: warning: exported method API.Panic should have comment or be unexported (golint)
    • Line 179: warning: exported method API.LuaRegEx should have comment or be unexported (golint)
    • Line 211: warning: exported method API.LuaPrint should have comment or be unexported (golint)
    • Line 217: warning: exported method API.LuaEcho should have comment or be unexported (golint)
    • Line 260: warning: exported method API.LuaRun should have comment or be unexported (golint)
    • Line 266: warning: exported method API.LuaSend should have comment or be unexported (golint)
    • Line 272: warning: exported method API.LuaAddTimer should have comment or be unexported (golint)
    • Line 312: warning: exported method API.LuaDelTimer should have comment or be unexported (golint)
    • Line 322: warning: exported type Timer should have comment or be unexported (golint)
    • Line 331: warning: exported method Timer.Emit should have comment or be unexported (golint)
    • go-mud/ui/readline.go
    • Line 12: warning: exported type Readline should have comment or be unexported (golint)
    • Line 23: warning: exported function NewReadline should have comment or be unexported (golint)
    • Line 32: warning: exported method Readline.SetRepeat should have comment or be unexported (golint)
    • Line 37: warning: exported method Readline.SetAutoTrim should have comment or be unexported (golint)
    • Line 42: warning: exported method Readline.InputCapture should have comment or be unexported (golint)
    • Line 69: warning: exported method Readline.Enter should have comment or be unexported (golint)
    • go-mud/ui/ui.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 21: warning: exported type UI should have comment or be unexported (golint)
    • Line 49: warning: exported function NewUI should have comment or be unexported (golint)
    • Line 56: warning: exported method UI.Create should have comment or be unexported (golint)
    • Line 113: warning: exported method UI.InputCapture should have comment or be unexported (golint)
    • Line 194: warning: exported method UI.Run should have comment or be unexported (golint)
    • Line 202: warning: exported method UI.Stop should have comment or be unexported (golint)
    • Line 207: warning: exported method UI.Input should have comment or be unexported (golint)
    • Line 324: warning: exported method UI.SetOutput should have comment or be unexported (golint)
    • Line 327: warning: exported method UI.Print should have comment or be unexported (golint)
    • Line 368: warning: exported method UI.Println should have comment or be unexported (golint)
    • Line 373: warning: exported method UI.Printf should have comment or be unexported (golint)
    • go-mud/main.go
    • Line 23: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 49: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.Run should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.DoCmd should have comment or be unexported (golint)
    • go-mud/mud/iac.go
    • Line 47: warning: exported const OptBINARY should have comment (or a comment on this block) or be unexported (golint)
    • Line 183: warning: exported type IACMessage should have comment or be unexported (golint)
    • Line 189: warning: exported function NewIACMessage should have comment or be unexported (golint)
    • Line 195: warning: exported method IACMessage.IsMessage should have comment or be unexported (golint)
    • Line 197: warning: exported method IACMessage.Reset should have comment or be unexported (golint)
    • Line 220: warning: exported method IACMessage.Eq should have comment or be unexported (golint)
    • Line 228: warning: exported method IACMessage.Scan should have comment or be unexported (golint)
    • go-mud/mud/mud.go
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: exported type Server should have comment or be unexported (golint)
    • Line 45: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 70: warning: exported method Server.SetScreen should have comment or be unexported (golint)
    • Line 74: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 178: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 184: warning: exported method Server.Input should have comment or be unexported (golint)
    • go-mud/mud/scan.go
    • Line 10: warning: exported type Message should have comment or be unexported (golint)
    • Line 14: warning: exported type CSIMessage should have comment or be unexported (golint)
    • Line 20: warning: exported type Line should have comment or be unexported (golint)
    • Line 22: warning: exported type IncompleteLine should have comment or be unexported (golint)
    • Line 24: warning: exported type EOF should have comment or be unexported (golint)
    • Line 26: warning: exported method CSIMessage.IsMessage should have comment or be unexported (golint)
    • Line 27: warning: exported method Line.IsMessage should have comment or be unexported (golint)
    • Line 28: warning: exported method IncompleteLine.IsMessage should have comment or be unexported (golint)
    • Line 29: warning: exported method EOF.IsMessage should have comment or be unexported (golint)
    • Line 31: warning: exported type ReaderWithDeadline should have comment or be unexported (golint)
    • Line 36: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 44: warning: exported type ScannerStatus should have comment or be unexported (golint)
    • Line 52: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 58: warning: exported method Scanner.Scan 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!