Preparing report...

Report for github.com/flux-web/flux-web

A    Great!    Found 14 issues across 18 files

Tweet

gofmt88%

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!


golint22%

Golint is a linter for Go source code.

    • flux-web/backend/controllers/namespace.go
    • Line 16: warning: exported type NamespaceController should have comment or be unexported (golint)
    • Line 20: warning: exported method NamespaceController.ListNamespaces should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • flux-web/backend/models/releaseRequest.go
    • Line 7: warning: exported type ReleaseRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type ContainerUpdate should have comment or be unexported (golint)
    • Line 22: warning: exported type RequestPayload should have comment or be unexported (golint)
    • Line 35: warning: exported type DynamicRequestPayload should have comment or be unexported (golint)
    • Line 40: warning: exported method DynamicRequestPayload.MarshalJSON should have comment or be unexported (golint)
    • Line 57: warning: exported function NewReleseRequest should have comment or be unexported (golint)
    • Line 63: warning: exported method ReleaseRequest.GetReleaseRequestJSON should have comment or be unexported (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • flux-web/backend/models/services.go
    • Line 9: warning: exported type Services should have comment or be unexported (golint)
    • Line 12: warning: exported type Service should have comment or be unexported (golint)
    • Line 24: warning: exported function NewServices should have comment or be unexported (golint)
    • Line 39: warning: exported method Services.GetStatusAutomateByWorkload should have comment or be unexported (golint)
    • Line 48: warning: exported method Services.WantedImageAlreadyDeployed should have comment or be unexported (golint)
    • flux-web/backend/controllers/websocketClient.go
    • Line 12: warning: exported type WebSocketController should have comment or be unexported (golint)
    • Line 23: warning: exported method WebSocketController.ReleaseWorkloads should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • flux-web/backend/controllers/workload.go
    • Line 29: warning: exported type WorkloadController should have comment or be unexported (golint)
    • Line 51: warning: exported method WorkloadController.ListWorkloads should have comment or be unexported (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: exported method WorkloadController.ReleaseWorkloads should have comment or be unexported (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 115: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 136: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 254: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 259: warning: exported function GetImages should have comment or be unexported (golint)
    • Line 286: warning: exported function Auth should have comment or be unexported (golint)
    • flux-web/backend/models/automate.go
    • Line 8: warning: exported type DeploySettings should have comment or be unexported (golint)
    • Line 13: warning: exported type Automated should have comment or be unexported (golint)
    • Line 17: warning: exported type AutomatedRequest should have comment or be unexported (golint)
    • Line 26: warning: exported type DynamicAutomatedRequest should have comment or be unexported (golint)
    • Line 31: warning: exported method DynamicAutomatedRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 48: warning: exported method ReleaseRequest.GetAutomatedRequestJSON should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • flux-web/backend/models/workload.go
    • Line 10: warning: exported type Workload should have comment or be unexported (golint)
    • Line 22: warning: exported type Container should have comment or be unexported (golint)
    • Line 45: warning: exported type Available should have comment or be unexported (golint)
    • Line 54: warning: exported type Labels should have comment or be unexported (golint)
    • Line 59: warning: exported function NewWorkloads should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!