Preparing report...

Report for github.com/ivaaaan/smug

(v0.2.5)

A    Great!    Found 9 issues across 12 files

Tweet

gofmt83%

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!


gocyclo83%

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.

    • smug/smug.go
    • Line 101: warning: cyclomatic complexity 30 of function (Smug).Start() is high (> 15) (gocyclo)
    • smug/main.go
    • Line 48: warning: cyclomatic complexity 21 of function main() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • smug/commander.go
    • Line 10: warning: exported type ShellError should have comment or be unexported (golint)
    • Line 19: warning: exported type Commander should have comment or be unexported (golint)
    • Line 24: warning: exported type DefaultCommander should have comment or be unexported (golint)
    • Line 28: warning: exported method DefaultCommander.Exec should have comment or be unexported (golint)
    • Line 44: warning: exported method DefaultCommander.ExecSilently should have comment or be unexported (golint)
    • smug/config.go
    • Line 13: warning: exported type Pane should have comment or be unexported (golint)
    • Line 19: warning: exported type Window should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 39: warning: exported function EditConfig should have comment or be unexported (golint)
    • Line 53: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 64: warning: exported function ParseConfig should have comment or be unexported (golint)
    • Line 83: warning: exported function ListConfigs should have comment or be unexported (golint)
    • smug/context.go
    • Line 5: warning: exported type Context should have comment or be unexported (golint)
    • Line 9: warning: exported function CreateContext should have comment or be unexported (golint)
    • smug/options.go
    • Line 11: warning: exported const CommandStart should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported var ErrHelp should have comment or be unexported (golint)
    • Line 35: warning: exported const WindowsUsage should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: comment on exported var NewFlagSet should be of the form "NewFlagSet ..." (golint)
    • Line 49: warning: exported function ParseOptions should have comment or be unexported (golint)
    • smug/smug.go
    • Line 17: warning: exported function ExpandPath should have comment or be unexported (golint)
    • Line 30: warning: exported function Contains should have comment or be unexported (golint)
    • Line 40: warning: exported type Smug should have comment or be unexported (golint)
    • Line 78: warning: exported method Smug.Stop should have comment or be unexported (golint)
    • Line 101: warning: exported method Smug.Start should have comment or be unexported (golint)
    • Line 204: warning: exported method Smug.GetConfigFromSession should have comment or be unexported (golint)
    • smug/tmux.go
    • Line 10: warning: exported const VSplit should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const EvenHorizontal should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Tmux should have comment or be unexported (golint)
    • Line 26: warning: exported type TmuxWindow should have comment or be unexported (golint)
    • Line 33: warning: exported type TmuxPane should have comment or be unexported (golint)
    • Line 37: warning: exported method Tmux.NewSession should have comment or be unexported (golint)
    • Line 42: warning: exported method Tmux.SessionExists should have comment or be unexported (golint)
    • Line 48: warning: exported method Tmux.KillWindow should have comment or be unexported (golint)
    • Line 54: warning: exported method Tmux.NewWindow should have comment or be unexported (golint)
    • Line 60: warning: exported method Tmux.SendKeys should have comment or be unexported (golint)
    • Line 65: warning: exported method Tmux.Attach should have comment or be unexported (golint)
    • Line 75: warning: exported method Tmux.RenumberWindows should have comment or be unexported (golint)
    • Line 81: warning: exported method Tmux.SplitWindow should have comment or be unexported (golint)
    • Line 103: warning: exported method Tmux.SelectLayout should have comment or be unexported (golint)
    • Line 108: warning: exported method Tmux.SetEnv should have comment or be unexported (golint)
    • Line 113: warning: exported method Tmux.StopSession should have comment or be unexported (golint)
    • Line 118: warning: exported method Tmux.SwitchClient should have comment or be unexported (golint)
    • Line 123: warning: exported method Tmux.SessionName should have comment or be unexported (golint)
    • Line 135: warning: exported method Tmux.ListWindows should have comment or be unexported (golint)
    • Line 161: warning: exported method Tmux.ListPanes 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!