Preparing report...

Report for github.com/sdminonne/workflow-controller

A+    Excellent!    Found 52 issues across 117 files

Tweet

gofmt99%

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!


gocyclo97%

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.


golint61%

Golint is a linter for Go source code.

    • workflow-controller/pkg/client/clientset/versioned/clientset.go
    • Line 18: warning: package comment should be of the form "Package versioned ..." (golint)
    • Line 31: warning: exported type Interface should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method Clientset.Cronworkflow should be of the form "Cronworkflow ..." (golint)
    • Line 69: warning: comment on exported method Clientset.Daemonsetjob should be of the form "Daemonsetjob ..." (golint)
    • Line 80: warning: comment on exported method Clientset.Workflow should be of the form "Workflow ..." (golint)
    • workflow-controller/pkg/api/workflow/v1/zz_generated.deepcopy.go
    • Line 95: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 147: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • workflow-controller/pkg/api/workflow/v1/register.go
    • Line 12: warning: exported var SchemeBuilder should have comment or be unexported (golint)
    • Line 21: warning: comment on exported const ResourceKind should be of the form "ResourceKind ..." (golint)
    • Line 23: warning: comment on exported const ResourceVersion should be of the form "ResourceVersion ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words