Preparing report...

Report for github.com/pior/runnable

A+    Excellent!    Found 10 issues across 25 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!


gocyclo96%

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.


golint68%

Golint is a linter for Go source code.

    • runnable/func.go
    • Line 5: warning: exported type RunnableFunc should have comment or be unexported (golint)
    • Line 11: warning: exported function Func should have comment or be unexported (golint)
    • runnable/recover.go
    • Line 8: warning: exported type PanicError should have comment or be unexported (golint)
    • Line 28: warning: exported type RecoverRunner should have comment or be unexported (golint)
    • Line 32: warning: exported method RecoverRunner.Run should have comment or be unexported (golint)
    • runnable/cmd/test/main.go
    • Line 16: warning: exported type ServerNoShutdown should have comment or be unexported (golint)
    • Line 18: warning: exported method ServerNoShutdown.Run should have comment or be unexported (golint)
    • Line 23: warning: exported type ServerPanic should have comment or be unexported (golint)
    • Line 25: warning: exported method ServerPanic.Run should have comment or be unexported (golint)
    • Line 32: warning: exported type Server should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 56: warning: exported type OneOff should have comment or be unexported (golint)
    • Line 59: warning: exported method OneOff.Run should have comment or be unexported (golint)
    • Line 64: warning: exported type ServerWithDB should have comment or be unexported (golint)
    • Line 68: warning: exported method ServerWithDB.Run should have comment or be unexported (golint)
    • Line 84: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 88: warning: exported method Metrics.Publish should have comment or be unexported (golint)
    • Line 94: warning: exported method Metrics.Run should have comment or be unexported (golint)
    • Line 107: warning: exported type DB should have comment or be unexported (golint)
    • Line 119: warning: exported method DB.Run should have comment or be unexported (golint)
    • runnable/cmd/example/jobqueue.go
    • Line 9: warning: exported type StupidJobQueue should have comment or be unexported (golint)
    • Line 14: warning: exported function NewStupidJobQueue should have comment or be unexported (golint)
    • Line 18: warning: exported method StupidJobQueue.Perform should have comment or be unexported (golint)
    • Line 22: warning: exported method StupidJobQueue.Executed should have comment or be unexported (golint)
    • Line 26: warning: exported method StupidJobQueue.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!


misspell96%

Misspell Finds commonly misspelled English words