Preparing report...

Report for github.com/altid/libs

A+    Excellent!    Found 20 issues across 56 files

Tweet

gofmt92%

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!


gocyclo92%

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.


golint75%

Golint is a linter for Go source code.

    • libs/fs/internal/command/command.go
    • Line 15: warning: exported const DefaultGroup should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: comment on exported var DefaultCommands should be of the form "DefaultCommands ..." (golint)
    • Line 68: warning: exported type CmdList should have comment or be unexported (golint)
    • Line 74: warning: exported function PrintCtlFile should have comment or be unexported (golint)
    • Line 111: warning: exported function FindParts should have comment or be unexported (golint)
    • Line 115: warning: comment on exported function ParseCmd should be of the form "ParseCmd ..." (golint)
    • libs/fs/internal/defaults/defaults.go
    • Line 26: warning: exported type Control should have comment or be unexported (golint)
    • Line 48: warning: exported function NewControl should have comment or be unexported (golint)
    • Line 82: warning: exported method Control.Input should have comment or be unexported (golint)
    • Line 103: warning: exported method Control.Event should have comment or be unexported (golint)
    • Line 108: warning: exported method Control.SetCommands should have comment or be unexported (golint)
    • Line 118: warning: exported method Control.BuildCommand should have comment or be unexported (golint)
    • Line 122: warning: exported method Control.Cleanup should have comment or be unexported (golint)
    • Line 143: warning: exported method Control.CreateBuffer should have comment or be unexported (golint)
    • Line 177: warning: exported method Control.DeleteBuffer should have comment or be unexported (golint)
    • Line 190: warning: exported method Control.HasBuffer should have comment or be unexported (golint)
    • Line 200: warning: exported method Control.Listen should have comment or be unexported (golint)
    • Line 213: warning: exported method Control.Remove should have comment or be unexported (golint)
    • Line 224: warning: exported method Control.Notification should have comment or be unexported (golint)
    • Line 297: warning: exported method Control.Errorwriter should have comment or be unexported (golint)
    • Line 311: warning: exported method Control.FileWriter should have comment or be unexported (golint)
    • Line 336: warning: exported method Control.ImageWriter should have comment or be unexported (golint)
    • libs/config/internal/entry/entry.go
    • Line 22: warning: exported type Entry should have comment or be unexported (golint)
    • Line 27: warning: exported function FromConfig should have comment or be unexported (golint)
    • Line 110: warning: exported function FixAuth should have comment or be unexported (golint)
    • libs/config/internal/request/request.go
    • Line 13: warning: exported type Request should have comment or be unexported (golint)
    • Line 21: warning: exported function Build should have comment or be unexported (golint)
    • Line 89: warning: exported function ParseTag should have comment or be unexported (golint)
    • libs/config/internal/conf/conf.go
    • Line 30: warning: exported type Conf should have comment or be unexported (golint)
    • Line 35: warning: exported function FromConfig should have comment or be unexported (golint)
    • Line 53: warning: exported method Conf.WriteOut should have comment or be unexported (golint)
    • libs/fs/internal/mock/mock.go
    • Line 28: warning: exported type Control should have comment or be unexported (golint)
    • Line 56: warning: exported function NewControl should have comment or be unexported (golint)
    • Line 66: warning: exported method Control.Cleanup should have comment or be unexported (golint)
    • Line 68: warning: exported method Control.Event should have comment or be unexported (golint)
    • Line 70: warning: exported method Control.Input should have comment or be unexported (golint)
    • Line 81: warning: exported method Control.SetCommands should have comment or be unexported (golint)
    • Line 90: warning: exported method Control.BuildCommand should have comment or be unexported (golint)
    • Line 94: warning: exported method Control.CreateBuffer should have comment or be unexported (golint)
    • Line 98: warning: exported method Control.DeleteBuffer should have comment or be unexported (golint)
    • Line 102: warning: exported method Control.HasBuffer should have comment or be unexported (golint)
    • Line 112: warning: exported method Control.Remove should have comment or be unexported (golint)
    • Line 116: warning: exported method Control.Listen should have comment or be unexported (golint)
    • Line 151: warning: exported method Control.Start should have comment or be unexported (golint)
    • Line 155: warning: exported method Control.Notification should have comment or be unexported (golint)
    • Line 194: warning: exported method Control.Errorwriter should have comment or be unexported (golint)
    • Line 199: warning: exported method Control.FileWriter should have comment or be unexported (golint)
    • Line 210: warning: exported method Control.ImageWriter should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!