Preparing report...

Report for github.com/DominicBreuker/pspy

A+    Excellent!    Found 10 issues across 18 files

Tweet

gofmt94%

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!


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!


golint50%

Golint is a linter for Go source code.

    • pspy/internal/fswatcher/fswatcher.go
    • Line 10: warning: exported type Inotify should have comment or be unexported (golint)
    • Line 19: warning: exported type Walker should have comment or be unexported (golint)
    • Line 23: warning: exported type FSWatcher should have comment or be unexported (golint)
    • Line 30: warning: exported function NewFSWatcher should have comment or be unexported (golint)
    • Line 39: warning: exported method FSWatcher.Close should have comment or be unexported (golint)
    • Line 43: warning: exported method FSWatcher.Init should have comment or be unexported (golint)
    • Line 105: warning: exported method FSWatcher.Run should have comment or be unexported (golint)
    • pspy/internal/pspy/pspy.go
    • Line 12: warning: exported type Bindings should have comment or be unexported (golint)
    • Line 18: warning: exported type Logger should have comment or be unexported (golint)
    • Line 24: warning: exported type FSWatcher should have comment or be unexported (golint)
    • Line 29: warning: exported type PSScanner should have comment or be unexported (golint)
    • Line 39: warning: exported function Start should have comment or be unexported (golint)
    • pspy/internal/logging/logging.go
    • Line 12: warning: exported const ColorNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Logger should have comment or be unexported (golint)
    • Line 28: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 59: warning: exported function GetColorByUID should have comment or be unexported (golint)
    • pspy/internal/fswatcher/walker/walker.go
    • Line 10: warning: exported type Walker should have comment or be unexported (golint)
    • Line 13: warning: exported function NewWalker should have comment or be unexported (golint)
    • Line 33: warning: exported method Walker.Walk should have comment or be unexported (golint)
    • pspy/internal/fswatcher/inotify/inotify.go
    • Line 21: warning: comment on exported const EventSize should be of the form "EventSize ..." (golint)
    • Line 31: warning: exported type Inotify should have comment or be unexported (golint)
    • Line 36: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 41: warning: exported type Event should have comment or be unexported (golint)
    • Line 46: warning: exported function NewInotify should have comment or be unexported (golint)
    • Line 53: warning: exported method Inotify.Init should have comment or be unexported (golint)
    • Line 62: warning: exported method Inotify.Watch should have comment or be unexported (golint)
    • Line 93: warning: exported method Inotify.ParseNextEvent should have comment or be unexported (golint)
    • Line 135: warning: exported method Inotify.Close should have comment or be unexported (golint)
    • Line 142: warning: exported method Inotify.NumWatchers should have comment or be unexported (golint)
    • pspy/internal/psscanner/psscanner.go
    • Line 13: warning: exported type PSScanner should have comment or be unexported (golint)
    • Line 19: warning: exported type PSEvent should have comment or be unexported (golint)
    • Line 51: warning: exported function NewPSScanner should have comment or be unexported (golint)
    • Line 59: warning: exported method PSScanner.Run 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!