Preparing report...

Report for github.com/go-task/task

A+    Excellent!    Found 20 issues across 48 files

Tweet

gofmt95%

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!


gocyclo89%

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.

    • task/variables.go
    • Line 24: warning: cyclomatic complexity 21 of function (*Executor).compiledTask() is high (> 15) (gocyclo)
    • task/watch.go
    • Line 22: warning: cyclomatic complexity 16 of function (*Executor).watchTasks() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 16 of function (*Executor).registerWatchedFiles() is high (> 15) (gocyclo)
    • task/task.go
    • Line 105: warning: cyclomatic complexity 40 of function (*Executor).Setup() is high (> 15) (gocyclo)
    • Line 260: warning: cyclomatic complexity 17 of function (*Executor).RunTask() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 17 of function (*Executor).runCommand() is high (> 15) (gocyclo)

golint72%

Golint is a linter for Go source code.

    • task/taskfile/task.go
    • Line 27: warning: exported method Task.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Task.UnmarshalYAML should have comment or be unexported (golint)
    • task/internal/summary/summary.go
    • Line 10: warning: exported function PrintTasks should have comment or be unexported (golint)
    • Line 17: warning: exported function PrintSpaceBetweenSummaries should have comment or be unexported (golint)
    • Line 27: warning: exported function PrintTask should have comment or be unexported (golint)
    • task/internal/output/group.go
    • Line 8: warning: exported type Group should have comment or be unexported (golint)
    • Line 10: warning: exported method Group.WrapWriter should have comment or be unexported (golint)
    • task/internal/templater/templater.go
    • Line 23: warning: exported method Templater.ResetCache should have comment or be unexported (golint)
    • Line 27: warning: exported method Templater.Replace should have comment or be unexported (golint)
    • Line 53: warning: exported method Templater.ReplaceSlice should have comment or be unexported (golint)
    • Line 65: warning: exported method Templater.ReplaceVars should have comment or be unexported (golint)
    • Line 83: warning: exported method Templater.Err should have comment or be unexported (golint)
    • task/internal/compiler/v3/compiler_v3.go
    • Line 20: warning: exported type CompilerV3 should have comment or be unexported (golint)
    • Line 32: warning: exported method CompilerV3.GetVariables should have comment or be unexported (golint)
    • Line 36: warning: exported method CompilerV3.FastGetVariables should have comment or be unexported (golint)
    • Line 100: warning: exported method CompilerV3.HandleDynamicVar 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!