Preparing report...

Report for arhat.dev/helm-stack

A    Great!    Found 15 issues across 19 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!


gocyclo78%

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.

    • /arhat.dev/helm-stack/pkg/conf/environment.go
    • Line 146: warning: cyclomatic complexity 39 of function (Environment).Gen() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 25 of function (Environment).Apply() is high (> 15) (gocyclo)
    • Line 63: warning: cyclomatic complexity 17 of function (Environment).Ensure() is high (> 15) (gocyclo)

golint21%

Golint is a linter for Go source code.

    • /arhat.dev/helm-stack/pkg/constant/defaults.go
    • Line 20: warning: exported const DefaultHelmStackConfigFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const DefaultValuesFile should have comment (or a comment on this block) or be unexported (golint)
    • /arhat.dev/helm-stack/pkg/version/version.go
    • Line 41: warning: exported function Version should have comment or be unexported (golint)
    • Line 60: warning: exported function Arch should have comment or be unexported (golint)
    • Line 64: warning: exported function GoVersion should have comment or be unexported (golint)
    • Line 68: warning: exported function GoCompilerPlatform should have comment or be unexported (golint)
    • /arhat.dev/helm-stack/pkg/conf/environment.go
    • Line 20: warning: exported type Environment should have comment or be unexported (golint)
    • Line 26: warning: exported method Environment.ValuesDir should have comment or be unexported (golint)
    • Line 30: warning: exported method Environment.ManifestsDir should have comment or be unexported (golint)
    • Line 34: warning: exported method Environment.CustomManifestsDir should have comment or be unexported (golint)
    • Line 45: warning: exported method Environment.Validate should have comment or be unexported (golint)
    • Line 63: warning: exported method Environment.Ensure should have comment or be unexported (golint)
    • Line 145: warning: comment on exported method Environment.Gen should be of the form "Gen ..." (golint)
    • Line 356: warning: exported method Environment.Apply should have comment or be unexported (golint)
    • Line 477: warning: exported type DeploymentSpec should have comment or be unexported (golint)
    • Line 492: warning: exported method DeploymentSpec.Filename should have comment or be unexported (golint)
    • Line 508: warning: exported method DeploymentSpec.NamespaceAndName should have comment or be unexported (golint)
    • Line 517: warning: exported method DeploymentSpec.Validate should have comment or be unexported (golint)
    • Line 532: warning: exported method DeploymentSpec.GetState should have comment or be unexported (golint)
    • Line 561: warning: exported type DeploymentState should have comment or be unexported (golint)
    • Line 571: warning: exported method DeploymentState.Validate should have comment or be unexported (golint)
    • /arhat.dev/helm-stack/pkg/conf/chart.go
    • Line 19: warning: exported type ChartSpec should have comment or be unexported (golint)
    • Line 30: warning: exported method ChartSpec.SubChartNames should have comment or be unexported (golint)
    • Line 54: warning: exported method ChartSpec.Dir should have comment or be unexported (golint)
    • Line 80: warning: exported method ChartSpec.Validate should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method ChartSpec.Ensure should be of the form "Ensure ..." (golint)
    • Line 383: warning: exported type ChartSource should have comment or be unexported (golint)
    • Line 388: warning: exported type ChartFromGitRepo should have comment or be unexported (golint)
    • Line 395: warning: exported method ChartFromGitRepo.Validate should have comment or be unexported (golint)
    • Line 410: warning: exported type ChartFromLocalPath should have comment or be unexported (golint)
    • Line 413: warning: exported method ChartFromLocalPath.Validate 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!