Preparing report...

Report for github.com/exoscale/egoscale

A+    Excellent!    Found 11 issues across 144 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!


golint97%

Golint is a linter for Go source code.

    • egoscale/v2/api/middleware.go
    • Line 12: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 22: warning: exported function NewAPIErrorHandlerMiddleware should have comment or be unexported (golint)
    • Line 30: warning: exported method ErrorHandlerMiddleware.RoundTrip should have comment or be unexported (golint)
    • Line 76: warning: exported function NewTraceMiddleware should have comment or be unexported (golint)
    • Line 84: warning: exported method TraceMiddleware.RoundTrip should have comment or be unexported (golint)
    • egoscale/v2/internal/public-api/mock.go
    • Line 10: warning: exported type MockClient should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMockClient should have comment or be unexported (golint)
    • Line 24: warning: exported method MockClient.Do should have comment or be unexported (golint)

gocyclo95%

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.

    • egoscale/serialization.go
    • Line 59: warning: cyclomatic complexity 28 of function prepareValues() is high (> 15) (gocyclo)
    • Line 285: warning: cyclomatic complexity 25 of function prepareSlice() is high (> 15) (gocyclo)
    • egoscale/generate/main.go
    • Line 124: warning: cyclomatic complexity 42 of function (*command).CheckResponse() is high (> 15) (gocyclo)
    • Line 295: warning: cyclomatic complexity 39 of function (*command).CheckParams() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 28 of function checkSource() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words