Preparing report...

Report for github.com/amadeusitgroup/kubervisor

A+    Excellent!    Found 15 issues across 108 files

Tweet

gofmt96%

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


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.


golint96%

Golint is a linter for Go source code.

    • kubervisor/examples/demo/pkg/api/types.go
    • Line 8: warning: exported type CityCode should have comment or be unexported (golint)
    • Line 10: warning: exported type OriginDestination should have comment or be unexported (golint)
    • Line 16: warning: exported type Route should have comment or be unexported (golint)
    • Line 21: warning: exported type Flight should have comment or be unexported (golint)
    • Line 29: warning: exported type Solution should have comment or be unexported (golint)
    • Line 35: warning: exported type Price should have comment or be unexported (golint)
    • Line 41: warning: exported type Error should have comment or be unexported (golint)
    • Line 46: warning: exported type Warning should have comment or be unexported (golint)
    • kubervisor/test/e2e/framework/kubervisor_util.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 143: warning: comment on exported function NewInt32 should be of the form "NewInt32 ..." (golint)
    • Line 149: warning: exported function CreateBusyBox should have comment or be unexported (golint)
    • Line 201: warning: exported function E2ERBAC should have comment or be unexported (golint)
    • Line 250: warning: exported function CreateCustomAnamalyDetector should have comment or be unexported (golint)
    • Line 302: warning: exported function CreateNamespace should have comment or be unexported (golint)
    • Line 316: warning: exported function DeleteNamespace should have comment or be unexported (golint)
    • Line 325: warning: exported function ExpectCountPod should have comment or be unexported (golint)
    • Line 341: warning: exported function TagPod should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words