Preparing report...

Report for github.com/phoban01/cue-flux-controller

(v0.0.1-alpha.7)

A    Great!    Found 8 issues across 16 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.

    • controllers/cueinstance_controller.go
    • Line 475: warning: cyclomatic complexity 52 of function (*CueInstanceReconciler).build() is high (> 15) (gocyclo)
    • Line 275: warning: cyclomatic complexity 24 of function (*CueInstanceReconciler).reconcile() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 19 of function (*CueInstanceReconciler).Reconcile() is high (> 15) (gocyclo)
    • Line 700: warning: cyclomatic complexity 18 of function (*CueInstanceReconciler).apply() is high (> 15) (gocyclo)

golint68%

Golint is a linter for Go source code.

    • api/v1alpha1/cueinstance_types.go
    • Line 29: warning: exported type ValidationMode should have comment or be unexported (golint)
    • Line 43: warning: exported const CueInstanceKind should have comment (or a comment on this block) or be unexported (golint)
    • Line 141: warning: exported type Validation should have comment or be unexported (golint)
    • controllers/cueinstance_impersonation.go
    • Line 36: warning: exported type CueInstanceImpersonation should have comment or be unexported (golint)
    • Line 43: warning: exported function NewCueInstanceImpersonation should have comment or be unexported (golint)
    • Line 56: warning: exported method CueInstanceImpersonation.GetServiceAccountToken should have comment or be unexported (golint)
    • Line 101: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)
    • Line 113: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)
    • Line 139: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)
    • Line 150: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)
    • Line 172: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)
    • Line 199: warning: receiver name ki should be consistent with previous receiver name ci for CueInstanceImpersonation (golint)

license0%

Checks whether your project has a LICENSE file.


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!