Preparing report...

Report for github.com/arxdsilva/golang-ifood-sdk

A+    Excellent!    Found 6 issues across 30 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!


golint83%

Golint is a linter for Go source code.

    • golang-ifood-sdk/services/authentication/authentication.go
    • Line 27: warning: exported var ErrGrantType should have comment or be unexported (golint)
    • Line 28: warning: exported var ErrNoRefreshToken should have comment or be unexported (golint)
    • Line 29: warning: exported var ErrNoAuthCodeOrVerifier should have comment or be unexported (golint)
    • Line 64: warning: exported type UserCode should have comment or be unexported (golint)
    • golang-ifood-sdk/services/events/events.go
    • Line 27: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 56: warning: exported type V2Event should have comment or be unexported (golint)
    • Line 65: warning: exported type ErrV2API should have comment or be unexported (golint)
    • Line 69: warning: exported type APIError should have comment or be unexported (golint)
    • golang-ifood-sdk/services/orders/types.go
    • Line 49: warning: exported type V2Customer should have comment or be unexported (golint)
    • Line 144: warning: exported type V2OrderDetails should have comment or be unexported (golint)
    • Line 165: warning: exported type V2Item should have comment or be unexported (golint)
    • Line 191: warning: exported type V2DeliveryInformation should have comment or be unexported (golint)
    • Line 213: warning: exported type V2Payments should have comment or be unexported (golint)
    • Line 234: warning: exported type V2OrderValues should have comment or be unexported (golint)
    • Line 241: warning: exported type V2Benefit should have comment or be unexported (golint)
    • Line 251: warning: exported type V2MerchantInfos should have comment or be unexported (golint)
    • Line 256: warning: exported type V2Schedule should have comment or be unexported (golint)
    • Line 261: warning: exported type V2Indoor should have comment or be unexported (golint)
    • Line 267: warning: exported type V2Takeout should have comment or be unexported (golint)

gocyclo96%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!