Preparing report...

Report for github.com/liudng/dogo

A    Great!    Found 4 issues across 9 files

Tweet

gofmt66%

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!


gocyclo88%

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.


golint66%

Golint is a linter for Go source code.

    • dogo/dogo.go
    • Line 50: warning: comment on exported method Dogo.NewMonitor should be of the form "NewMonitor ..." (golint)
    • Line 99: warning: exported method Dogo.InitFiles should have comment or be unexported (golint)
    • Line 124: warning: exported method Dogo.BuildAndRun should have comment or be unexported (golint)
    • Line 143: warning: comment on exported method Dogo.Build should be of the form "Build ..." (golint)
    • Line 158: warning: comment on exported method Dogo.Run should be of the form "Run ..." (golint)
    • dogo/notification_linux.go
    • Line 19: warning: exported type Event should have comment or be unexported (golint)
    • Line 30: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 120: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 225: warning: comment on exported const IN_DONT_FOLLOW should be of the form "IN_DONT_FOLLOW ..." (golint)
    • Line 227: warning: exported const IN_ONESHOT should have comment (or a comment on this block) or be unexported (golint)
    • Line 234: warning: comment on exported const IN_ACCESS should be of the form "IN_ACCESS ..." (golint)
    • Line 251: warning: comment on exported const IN_ISDIR should be of the form "IN_ISDIR ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign77%

IneffAssign detects ineffectual assignments in Go code.

    • dogo/main.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/zhgo/config (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/zhgo/config (invalid package name: "") (ineffassign)
    • dogo/dogo.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/zhgo/console (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/zhgo/console (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!