Preparing report...

Report for github.com/rafael-piovesan/go-rocket-ride

(v0.0.0-20220110203000-c7eea63bb01c)

A+    Excellent!    Found 21 issues across 39 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!


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.


golint51%

Golint is a linter for Go source code.

    • rocketride.go
    • Line 9: warning: exported type Datastore should have comment or be unexported (golint)
    • Line 22: warning: exported type RideUseCase should have comment or be unexported (golint)
    • entity/audit/audit.go
    • Line 3: warning: exported type Action should have comment or be unexported (golint)
    • Line 6: warning: exported const ActionCreateRide should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type ResourceType should have comment or be unexported (golint)
    • Line 16: warning: exported const ResourceTypeRide should have comment (or a comment on this block) or be unexported (golint)
    • api/http/middleware/user.go
    • Line 16: warning: exported type UserMiddleware should have comment or be unexported (golint)
    • Line 22: warning: exported function NewUserMiddleware should have comment or be unexported (golint)
    • Line 30: warning: exported method UserMiddleware.Handle should have comment or be unexported (golint)
    • entity/stagedjob/staged_job.go
    • Line 3: warning: exported type JobName should have comment or be unexported (golint)
    • Line 6: warning: exported const JobNameSendReceipt should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type JobArgReceipt should have comment or be unexported (golint)
    • api/http/handler/handler.go
    • Line 12: warning: exported type Handler should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 46: warning: exported method Handler.GetUserFromCtx should have comment or be unexported (golint)
    • Line 54: warning: exported method Handler.HandleError should have comment or be unexported (golint)
    • entity/idempotency/idempotency.go
    • Line 8: warning: exported type RecoveryPoint should have comment or be unexported (golint)
    • Line 11: warning: exported const RecoveryPointStarted should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type ResponseCode should have comment or be unexported (golint)
    • Line 24: warning: exported const ResponseCodeOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type ResponseBody should have comment or be unexported (golint)
    • Line 34: warning: exported method ResponseBody.Marshal should have comment or be unexported (golint)
    • entity/user.go
    • Line 3: warning: exported type UserCtxKeyType should have comment or be unexported (golint)
    • Line 6: warning: exported const UserCtxKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type User should have comment or be unexported (golint)
    • entity/originip/origin_ip.go
    • Line 11: warning: exported type OriginIP should have comment or be unexported (golint)
    • Line 17: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 21: warning: exported function FromCtx should have comment or be unexported (golint)
    • api/http/server.go
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 25: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 53: warning: exported method Server.Start should have comment or be unexported (golint)
    • entity/errors.go
    • Line 6: warning: exported var ErrPermissionDenied should have comment or be unexported (golint)
    • usecase/ride.go
    • Line 28: warning: exported function NewRideUseCase should have comment or be unexported (golint)
    • api/http/handler/ride.go
    • Line 30: warning: exported type RideHandler should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRideHandler should have comment or be unexported (golint)
    • Line 42: warning: exported method RideHandler.Create should have comment or be unexported (golint)
    • api/http/middleware/originip.go
    • Line 8: warning: exported type IPMiddleware should have comment or be unexported (golint)
    • Line 10: warning: exported function NewIPMiddleware should have comment or be unexported (golint)
    • Line 14: warning: exported method IPMiddleware.Handle should have comment or be unexported (golint)
    • pkg/stripemock/stripe.go
    • Line 38: warning: exported function Init should have comment or be unexported (golint)
    • Line 95: warning: exported function InitForError should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words