Preparing report...

Report for github.com/heppu/gkill

A+    Excellent!    Found 2 issues across 4 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!


golint75%

Golint is a linter for Go source code.

    • gkill/killer/killer.go
    • Line 18: warning: exported type ByName should have comment or be unexported (golint)
    • Line 24: warning: exported type Killer should have comment or be unexported (golint)
    • Line 35: warning: exported function NewKiller should have comment or be unexported (golint)
    • Line 69: warning: exported method Killer.Start should have comment or be unexported (golint)
    • Line 119: warning: exported method Killer.OnChange should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • gkill/killer/killer.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/heppu/rawterm (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/k0kubun/go-ansi (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/mitchellh/go-ps (invalid package name: "") (ineffassign)
    • Line 18: warning: undeclared name: ps (ineffassign)
    • Line 26: warning: undeclared name: ps (ineffassign)
    • Line 27: warning: undeclared name: ps (ineffassign)
    • Line 36: warning: undeclared name: ps (ineffassign)
    • Line 52: warning: undeclared name: ansi (ineffassign)
    • Line 141: warning: undeclared name: ansi (ineffassign)
    • Line 142: warning: undeclared name: ansi (ineffassign)
    • Line 156: warning: undeclared name: ansi (ineffassign)
    • Line 157: warning: undeclared name: ansi (ineffassign)
    • Line 166: warning: undeclared name: ansi (ineffassign)
    • Line 167: warning: undeclared name: ansi (ineffassign)
    • Line 168: warning: undeclared name: ansi (ineffassign)
    • Line 171: warning: undeclared name: ansi (ineffassign)
    • Line 172: warning: undeclared name: ansi (ineffassign)
    • Line 173: warning: undeclared name: ansi (ineffassign)
    • Line 177: warning: undeclared name: ansi (ineffassign)
    • Line 178: warning: undeclared name: ansi (ineffassign)
    • Line 179: warning: undeclared name: ansi (ineffassign)
    • Line 183: warning: undeclared name: ansi (ineffassign)
    • Line 184: warning: undeclared name: ansi (ineffassign)
    • Line 194: warning: undeclared name: ps (ineffassign)
    • Line 14: warning: "github.com/k0kubun/go-ansi" imported but not used (ineffassign)
    • Line 15: warning: "github.com/mitchellh/go-ps" imported but not used (ineffassign)
    • Line 12: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/heppu/rawterm (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/k0kubun/go-ansi (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/mitchellh/go-ps (invalid package name: "") (ineffassign)
    • Line 18: warning: undeclared name: ps (ineffassign)
    • Line 26: warning: undeclared name: ps (ineffassign)
    • Line 27: warning: undeclared name: ps (ineffassign)
    • Line 36: warning: undeclared name: ps (ineffassign)
    • Line 52: warning: undeclared name: ansi (ineffassign)
    • Line 141: warning: undeclared name: ansi (ineffassign)
    • Line 142: warning: undeclared name: ansi (ineffassign)
    • Line 156: warning: undeclared name: ansi (ineffassign)
    • Line 157: warning: undeclared name: ansi (ineffassign)
    • Line 166: warning: undeclared name: ansi (ineffassign)
    • Line 167: warning: undeclared name: ansi (ineffassign)
    • Line 168: warning: undeclared name: ansi (ineffassign)
    • Line 171: warning: undeclared name: ansi (ineffassign)
    • Line 172: warning: undeclared name: ansi (ineffassign)
    • Line 173: warning: undeclared name: ansi (ineffassign)
    • Line 177: warning: undeclared name: ansi (ineffassign)
    • Line 178: warning: undeclared name: ansi (ineffassign)
    • Line 179: warning: undeclared name: ansi (ineffassign)
    • Line 183: warning: undeclared name: ansi (ineffassign)
    • Line 184: warning: undeclared name: ansi (ineffassign)
    • Line 194: warning: undeclared name: ps (ineffassign)
    • Line 14: warning: "github.com/k0kubun/go-ansi" imported but not used (ineffassign)
    • Line 15: warning: "github.com/mitchellh/go-ps" imported but not used (ineffassign)
    • gkill/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/heppu/gkill/killer (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/heppu/gkill/killer (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!