Preparing report...

Report for github.com/w6d-io/ci-operator

A+    Excellent!    Found 57 issues across 143 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!


gocyclo97%

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.


golint60%

Golint is a linter for Go source code.

    • ci-operator/controllers/play_controller.go
    • Line 75: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 76: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 216: warning: exported method PlayReconciler.GetStatus should have comment or be unexported (golint)
    • ci-operator/internal/util/flags.go
    • Line 79: warning: exported method OutputFormatFlag.Set should have comment or be unexported (golint)
    • Line 111: warning: exported method LevelFlag.Set should have comment or be unexported (golint)
    • Line 132: warning: exported type ConfigFlag should have comment or be unexported (golint)
    • Line 140: warning: exported method ConfigFlag.Set should have comment or be unexported (golint)
    • ci-operator/api/v1alpha1/play_types.go
    • Line 176: warning: exported type Vault should have comment or be unexported (golint)
    • Line 247: warning: exported var SecretKinds should have comment or be unexported (golint)
    • Line 319: warning: exported const AnnotationOrder should have comment (or a comment on this block) or be unexported (golint)
    • Line 343: warning: exported method Play.Get should have comment or be unexported (golint)
    • ci-operator/internal/values/values.go
    • Line 31: warning: exported const FileNameValues should have comment (or a comment on this block) or be unexported (golint)
    • Line 197: warning: exported function LookupOrDefaultValues should have comment or be unexported (golint)
    • ci-operator/internal/config/types.go
    • Line 56: warning: exported type Values should have comment or be unexported (golint)
    • Line 61: warning: exported type Minio should have comment or be unexported (golint)
    • Line 75: warning: exported type Hash should have comment or be unexported (golint)
    • Line 80: warning: exported type Vault should have comment or be unexported (golint)
    • ci-operator/internal/config/config.go
    • Line 206: warning: exported function GetNamespace should have comment or be unexported (golint)
    • Line 210: warning: exported function SetNamespace should have comment or be unexported (golint)
    • Line 224: warning: exported function GetHash should have comment or be unexported (golint)
    • Line 279: warning: exported function ToSnakeUpperCase should have comment or be unexported (golint)
    • ci-operator/internal/values/templates.go
    • Line 38: warning: exported var ValueLog should have comment or be unexported (golint)
    • Line 42: warning: exported method Templates.PrintTemplate should have comment or be unexported (golint)
    • Line 60: warning: exported function Vault should have comment or be unexported (golint)
    • ci-operator/internal/k8s/secrets/git.go
    • Line 39: warning: comment on exported const GitTektonAnnotation should be of the form "GitTektonAnnotation ..." (golint)
    • Line 42: warning: exported const GitPrefixSecret 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!


misspell99%

Misspell Finds commonly misspelled English words