Preparing report...

Report for github.com/keikoproj/instance-manager

(v0.0.0-20230921025021-8b70e5b77b95)

A+    Excellent!    Found 16 issues across 59 files

Tweet

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!


gofmt89%

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


gocyclo88%

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.

    • api/v1alpha1/instancegroup_types.go
    • Line 523: warning: cyclomatic complexity 42 of function (*EKSConfiguration).Validate() is high (> 15) (gocyclo)
    • Line 421: warning: cyclomatic complexity 25 of function (*EKSSpec).Validate() is high (> 15) (gocyclo)
    • Line 718: warning: cyclomatic complexity 23 of function (*InstanceGroup).Validate() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell89%

Misspell Finds commonly misspelled English words

    • controllers/provisioners/eks/helpers.go
    • Line 178: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 275: warning: "persistance" is a misspelling of "persistence" (misspell)
    • Line 277: warning: "persistance" is a misspelling of "persistence" (misspell)
    • Line 284: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 284: warning: "persistance" is a misspelling of "persistence" (misspell)
    • controllers/provisioners/eks/helpers_test.go
    • Line 114: warning: "persistance" is a misspelling of "persistence" (misspell)
    • Line 122: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 122: warning: "persistance" is a misspelling of "persistence" (misspell)
    • Line 468: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 512: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 729: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 754: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 767: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 781: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 789: warning: "Persistance" is a misspelling of "Persistence" (misspell)
    • Line 795: warning: "Persistance" is a misspelling of "Persistence" (misspell)