Preparing report...

Report for github.com/bitsbeats/drone-helm3

A+    Excellent!    Found 6 issues across 8 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!


gocyclo87%

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.


golint37%

Golint is a linter for Go source code.

    • drone-helm3/internal/helm/helm.go
    • Line 14: warning: exported type HelmCmd should have comment or be unexported (golint)
    • Line 33: warning: exported type HelmOption should have comment or be unexported (golint)
    • Line 34: warning: exported type HelmModeOption should have comment or be unexported (golint)
    • Line 35: warning: exported type Runner should have comment or be unexported (golint)
    • Line 40: warning: exported function WithInstallUpgradeMode should have comment or be unexported (golint)
    • Line 46: warning: exported function WithRelease should have comment or be unexported (golint)
    • Line 53: warning: exported function WithChart should have comment or be unexported (golint)
    • Line 60: warning: exported function WithNamespace should have comment or be unexported (golint)
    • Line 67: warning: exported function WithLint should have comment or be unexported (golint)
    • Line 78: warning: exported function WithAtomic should have comment or be unexported (golint)
    • Line 87: warning: exported function WithWait should have comment or be unexported (golint)
    • Line 96: warning: exported function WithForce should have comment or be unexported (golint)
    • Line 105: warning: exported function WithCleanupOnFail should have comment or be unexported (golint)
    • Line 114: warning: exported function WithDryRun should have comment or be unexported (golint)
    • Line 123: warning: exported function WithDebug should have comment or be unexported (golint)
    • Line 132: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 139: warning: exported function WithHelmRepos should have comment or be unexported (golint)
    • Line 163: warning: exported function WithBuildDependencies should have comment or be unexported (golint)
    • Line 174: warning: exported function WithUpdateDependencies should have comment or be unexported (golint)
    • Line 185: warning: exported function WithTest should have comment or be unexported (golint)
    • Line 192: warning: exported function WithTestRollback should have comment or be unexported (golint)
    • Line 199: warning: exported function WithValues should have comment or be unexported (golint)
    • Line 214: warning: exported function WithValuesString should have comment or be unexported (golint)
    • Line 229: warning: exported function WithValuesYaml should have comment or be unexported (golint)
    • Line 238: warning: exported function WithPreCommand should have comment or be unexported (golint)
    • Line 245: warning: exported function WithPostCommand should have comment or be unexported (golint)
    • Line 252: warning: exported function WithKubeConfig should have comment or be unexported (golint)
    • Line 261: warning: exported function WithRunner should have comment or be unexported (golint)
    • Line 268: warning: exported function NewHelmCmd should have comment or be unexported (golint)
    • Line 295: warning: exported method HelmCmd.Run should have comment or be unexported (golint)
    • Line 315: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 332: warning: exported type HelmError should have comment or be unexported (golint)
    • Line 343: warning: exported function Wrap should have comment or be unexported (golint)
    • drone-helm3/internal/kube/kube.go
    • Line 19: warning: exported type Option should have comment or be unexported (golint)
    • Line 52: warning: exported function WithConfig should have comment or be unexported (golint)
    • Line 58: warning: exported function WithApiServer should have comment or be unexported (golint)
    • Line 64: warning: exported function WithToken should have comment or be unexported (golint)
    • Line 70: warning: exported function WithCertificate should have comment or be unexported (golint)
    • Line 76: warning: exported function WithSkipTLS should have comment or be unexported (golint)
    • Line 82: warning: exported function WithNamespace should have comment or be unexported (golint)
    • Line 88: warning: exported function CreateKubeConfig should have comment or be unexported (golint)
    • drone-helm3/internal/errorhandler/errorhandler.go
    • Line 17: warning: exported type Status should have comment or be unexported (golint)
    • Line 19: warning: exported type Handler should have comment or be unexported (golint)
    • Line 38: warning: exported function NewPushgateway should have comment or be unexported (golint)
    • Line 47: warning: exported method Pushgateway.Fatalf should have comment or be unexported (golint)
    • Line 51: warning: exported method Pushgateway.Status should have comment or be unexported (golint)
    • Line 91: warning: exported function NewLog should have comment or be unexported (golint)
    • Line 95: warning: exported method Log.Fatalf should have comment or be unexported (golint)
    • Line 99: warning: exported method Log.Status should have comment or be unexported (golint)
    • drone-helm3/internal/core/error.go
    • Line 3: warning: exported type ErrorKind should have comment or be unexported (golint)
    • Line 6: warning: comment on exported const PreFailErrorKind should be of the form "PreFailErrorKind ..." (golint)
    • Line 12: warning: comment on exported const FailedErrorKind should be of the form "FailedErrorKind ..." (golint)
    • Line 15: warning: comment on exported const TestFailedErrorKind should be of the form "TestFailedErrorKind ..." (golint)
    • Line 19: warning: comment on exported const RollbackSuccessErrorKind should be of the form "RollbackSuccessErrorKind ..." (golint)
    • Line 23: warning: comment on exported const RollbackFailedErrorKind should be of the form "RollbackFailedErrorKind ..." (golint)
    • drone-helm3/main.go
    • Line 23: warning: exported type Config should have comment or be unexported (golint)
    • Line 203: warning: exported type Runner should have comment or be unexported (golint)
    • Line 205: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 209: warning: exported method Runner.Run 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!


misspell75%

Misspell Finds commonly misspelled English words

    • drone-helm3/main.go
    • Line 46: warning: "additonal" is a misspelling of "additional" (misspell)
    • Line 55: warning: "additonal" is a misspelling of "additional" (misspell)
    • Line 72: warning: "environmnet" is a misspelling of "environments" (misspell)