Preparing report...

Report for github.com/lunarway/shuttle

A+    Excellent!    Found 12 issues across 44 files

Tweet

gofmt97%

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!


gocyclo95%

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.


golint75%

Golint is a linter for Go source code.

    • shuttle/pkg/sdk/context.go
    • Line 11: warning: exported type ShuttleContext should have comment or be unexported (golint)
    • Line 19: warning: exported function LoadShuttleContext should have comment or be unexported (golint)
    • Line 39: warning: exported function LoadShuttleYaml should have comment or be unexported (golint)
    • shuttle/pkg/sdk/template.go
    • Line 13: warning: exported type TemplateContext should have comment or be unexported (golint)
    • Line 38: warning: exported function ResolveTemplatePath should have comment or be unexported (golint)
    • Line 51: warning: exported function Generate should have comment or be unexported (golint)
    • shuttle/pkg/git/git.go
    • Line 17: warning: exported type Plan should have comment or be unexported (golint)
    • Line 28: warning: exported function ParsePlan should have comment or be unexported (golint)
    • Line 126: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 151: warning: exported function RunGitPlanCommand should have comment or be unexported (golint)
    • shuttle/pkg/git/status.go
    • Line 19: warning: exported type StatusType should have comment or be unexported (golint)
    • Line 22: warning: exported const StatusTypeUnchanged should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Status should have comment or be unexported (golint)
    • Line 42: warning: exported type FileStatus should have comment or be unexported (golint)
    • shuttle/pkg/templates/funcs.go
    • Line 15: warning: exported type KeyValuePair should have comment or be unexported (golint)
    • Line 50: warning: comment on exported function TmplGet should be of the form "TmplGet ..." (golint)
    • Line 66: warning: comment on exported function TmplStrConst should be of the form "TmplStrConst ..." (golint)
    • Line 73: warning: comment on exported function TmplString should be of the form "TmplString ..." (golint)
    • Line 82: warning: comment on exported function TmplInt should be of the form "TmplInt ..." (golint)
    • Line 142: warning: exported function TmplIs should have comment or be unexported (golint)
    • Line 146: warning: exported function TmplIsnt should have comment or be unexported (golint)
    • Line 196: warning: exported function TmplGetFileContent should have comment or be unexported (golint)
    • Line 204: warning: exported function TmplFileExists should have comment or be unexported (golint)
    • Line 211: warning: exported function TmplGetFiles 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!


misspell97%

Misspell Finds commonly misspelled English words