Preparing report...

Report for github.com/hybridapp-io/ham-deploy

A+    Excellent!    Found 4 issues across 18 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint77%

Golint is a linter for Go source code.

    • ham-deploy/pkg/apis/deploy/v1alpha1/operator_types.go
    • Line 24: warning: exported type GenericContainerSpec should have comment or be unexported (golint)
    • Line 35: warning: exported var ContainerEnvVarKeyWATCHNAMESPACE should have comment or be unexported (golint)
    • Line 45: warning: exported var DefaultDeployableEnablement should have comment or be unexported (golint)
    • Line 62: warning: exported type DeployableOperatorSpec should have comment or be unexported (golint)
    • Line 67: warning: exported var DefaultAssmeblerEnablement should have comment or be unexported (golint)
    • Line 84: warning: exported type ApplicationAssemblerSpec should have comment or be unexported (golint)
    • Line 89: warning: exported var DefaultDiscovererEnablement should have comment or be unexported (golint)
    • Line 109: warning: exported var ContainerEnvVarKeyCLUSTERNAME should have comment or be unexported (golint)
    • Line 114: warning: exported type HubConnectionConfig should have comment or be unexported (golint)
    • Line 120: warning: exported type ResourceDiscovererSpec should have comment or be unexported (golint)
    • Line 128: warning: exported var DefaultPlacementEnablement should have comment or be unexported (golint)
    • Line 145: warning: exported type PlacementSpec should have comment or be unexported (golint)
    • Line 149: warning: exported type CoreSpec should have comment or be unexported (golint)
    • Line 154: warning: exported type ToolsSpec should have comment or be unexported (golint)
    • Line 159: warning: exported type LicenseSpec should have comment or be unexported (golint)
    • Line 171: warning: exported type Phase should have comment or be unexported (golint)
    • Line 174: warning: exported const PhaseInstalled should have comment (or a comment on this block) 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!