Preparing report...

Report for github.com/idobry/flux-web

B    Not bad!    Found 9 issues across 8 files

Tweet

gofmt87%

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!


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!


golint12%

Golint is a linter for Go source code.

    • flux-web/models/services.go
    • Line 7: warning: exported type Service should have comment or be unexported (golint)
    • Line 26: warning: exported function NewServices should have comment or be unexported (golint)
    • flux-web/controllers/workload.go
    • Line 19: warning: exported type WorkloadController should have comment or be unexported (golint)
    • Line 33: warning: exported method WorkloadController.ListWorkloads should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported method WorkloadController.ReleaseWorkloads should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 123: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 128: warning: exported function GetImages should have comment or be unexported (golint)
    • flux-web/models/images.go
    • Line 8: warning: exported type Image should have comment or be unexported (golint)
    • Line 50: warning: exported function NewImages should have comment or be unexported (golint)
    • flux-web/models/job.go
    • Line 7: warning: exported type Job should have comment or be unexported (golint)
    • Line 41: warning: exported function NewJob should have comment or be unexported (golint)
    • flux-web/models/release.go
    • Line 7: warning: exported type Release should have comment or be unexported (golint)
    • Line 26: warning: exported function NewRelese should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!