Preparing report...

Report for github.com/x-mod/routine

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


golint42%

Golint is a linter for Go source code.

    • routine/executors.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 160: warning: exported type CrontabMute should have comment or be unexported (golint)
    • Line 186: warning: exported method CrontabExecutor.Weekend should have comment or be unexported (golint)
    • Line 189: warning: exported method CrontabExecutor.Workday should have comment or be unexported (golint)
    • Line 192: warning: exported method CrontabExecutor.Everyday should have comment or be unexported (golint)
    • Line 198: warning: exported method CrontabExecutor.Mute should have comment or be unexported (golint)
    • Line 203: warning: exported method CrontabExecutor.IsTimeMuted should have comment or be unexported (golint)
    • Line 259: warning: exported type CommandOpt should have comment or be unexported (golint)
    • Line 261: warning: exported function ARG should have comment or be unexported (golint)
    • Line 267: warning: exported function ENV should have comment or be unexported (golint)
    • Line 273: warning: exported function Stdin should have comment or be unexported (golint)
    • Line 279: warning: exported function Stdout should have comment or be unexported (golint)
    • Line 285: warning: exported function Stderr should have comment or be unexported (golint)
    • Line 334: warning: exported method TimeoutExecutor.Execute should have comment or be unexported (golint)
    • Line 391: warning: comment on exported type ParallelExecutor should be of the form "ParallelExecutor ..." (with optional leading article) (golint)
    • Line 419: warning: comment on exported type AppendExecutor should be of the form "AppendExecutor ..." (with optional leading article) (golint)
    • Line 433: warning: exported method AppendExecutor.Append should have comment or be unexported (golint)
    • Line 437: warning: exported method AppendExecutor.Execute should have comment or be unexported (golint)
    • Line 446: warning: comment on exported type ProfilingExecutor should be of the form "ProfilingExecutor ..." (with optional leading article) (golint)
    • Line 451: warning: exported function Profiling should have comment or be unexported (golint)
    • Line 455: warning: exported method ProfilingExecutor.Execute should have comment or be unexported (golint)
    • routine/routine.go
    • Line 36: warning: exported type SigHandler should have comment or be unexported (golint)
    • Line 37: warning: exported type SigTrap should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function Go should be of the form "Go ..." (golint)
    • Line 184: warning: exported method Routine.Serving should have comment or be unexported (golint)
    • Line 188: warning: comment on exported method Routine.Close should be of the form "Close ..." (golint)
    • Line 242: warning: context.Context should be the first parameter of a function (golint)
    • routine/context.go
    • Line 28: warning: don't use underscores in Go names; type _parent_routine should be _parentRoutine (golint)
    • Line 30: warning: exported function WithParent should have comment or be unexported (golint)
    • Line 34: warning: exported function ParentFrom 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!