Preparing report...

Report for github.com/opencars/bot

A+    Excellent!    Found 16 issues across 25 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!


gocyclo100%

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.

No problems detected. Good job!


golint36%

Golint is a linter for Go source code.

    • bot/pkg/domain/service.go
    • Line 9: warning: exported type VehicleService should have comment or be unexported (golint)
    • Line 15: warning: exported type Recognizer should have comment or be unexported (golint)
    • Line 19: warning: exported type MessageService should have comment or be unexported (golint)
    • bot/pkg/bot/bot.go
    • Line 19: warning: exported type Bot should have comment or be unexported (golint)
    • Line 25: warning: exported function NewBot should have comment or be unexported (golint)
    • Line 53: warning: exported method Bot.Process should have comment or be unexported (golint)
    • bot/pkg/bot/poller.go
    • Line 12: warning: exported type Poller should have comment or be unexported (golint)
    • Line 17: warning: exported function NewPoller should have comment or be unexported (golint)
    • Line 24: warning: exported method Poller.Poll should have comment or be unexported (golint)
    • bot/pkg/domain/entities.go
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 15: warning: exported type Message should have comment or be unexported (golint)
    • Line 22: warning: exported type Result should have comment or be unexported (golint)
    • Line 27: warning: exported type Request should have comment or be unexported (golint)
    • Line 32: warning: exported type Vehicle should have comment or be unexported (golint)
    • Line 41: warning: exported type Registration should have comment or be unexported (golint)
    • bot/pkg/domain/message/service.go
    • Line 9: warning: exported type Service should have comment or be unexported (golint)
    • Line 13: warning: exported function NewService should have comment or be unexported (golint)
    • Line 19: warning: exported method Service.Create should have comment or be unexported (golint)
    • bot/pkg/domain/alpr/service.go
    • Line 9: warning: exported type Service should have comment or be unexported (golint)
    • Line 13: warning: exported function NewService should have comment or be unexported (golint)
    • Line 18: warning: exported method Service.Recognize should have comment or be unexported (golint)
    • bot/pkg/config/config.go
    • Line 40: warning: comment on exported type Database should be of the form "Database ..." (with optional leading article) (golint)
    • Line 50: warning: exported type GRPC should have comment or be unexported (golint)
    • Line 54: warning: exported type ServiceGRPC should have comment or be unexported (golint)
    • Line 59: warning: exported type Bot should have comment or be unexported (golint)
    • Line 65: warning: exported type ALPR should have comment or be unexported (golint)
    • Line 70: warning: exported method ServiceGRPC.Address should have comment or be unexported (golint)
    • bot/pkg/domain/testing.go
    • Line 10: warning: exported function TestUser should have comment or be unexported (golint)
    • Line 24: warning: exported function TestMessage should have comment or be unexported (golint)
    • bot/pkg/store/sqlstore/store.go
    • Line 12: warning: exported type Store should have comment or be unexported (golint)
    • Line 18: warning: exported method Store.Message should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • bot/pkg/domain/vehicle/service.go
    • Line 12: warning: exported type Service should have comment or be unexported (golint)
    • Line 17: warning: exported function NewService should have comment or be unexported (golint)
    • Line 29: warning: exported method Service.FindByNumber should have comment or be unexported (golint)
    • Line 41: warning: exported method Service.FindByVIN should have comment or be unexported (golint)
    • Line 53: warning: exported method Service.FindByImage should have comment or be unexported (golint)
    • bot/pkg/bot/vehicle_handler.go
    • Line 15: warning: exported method Bot.FindByNumber should have comment or be unexported (golint)
    • Line 44: warning: exported method Bot.FindByVIN should have comment or be unexported (golint)
    • Line 71: warning: exported method Bot.FindByImage should have comment or be unexported (golint)
    • bot/pkg/domain/error.go
    • Line 4: warning: exported var ErrNotRecognized should have comment or be unexported (golint)
    • Line 7: warning: exported type Error should have comment or be unexported (golint)
    • Line 11: warning: exported function NewError 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!