Preparing report...

Report for hidevops.io/hiboot-data

(v1.3.4)

A+    Excellent!    Found 36 issues across 83 files

Tweet

gofmt89%

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!


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!


golint60%

Golint is a linter for Go source code.

    • /hidevops.io/hiboot-data/examples/amqp/service/user.go
    • Line 26: warning: exported type UserService should have comment or be unexported (golint)
    • Line 48: warning: exported method UserService.Create should have comment or be unexported (golint)
    • Line 57: warning: exported method UserService.Create1 should have comment or be unexported (golint)
    • Line 66: warning: exported method UserService.PublishDirect should have comment or be unexported (golint)
    • Line 75: warning: exported method UserService.Publish should have comment or be unexported (golint)
    • Line 84: warning: exported method UserService.PublishFanout should have comment or be unexported (golint)
    • Line 93: warning: exported method UserService.ReceiveFanout should have comment or be unexported (golint)
    • Line 118: warning: exported method UserService.ReceiveFanout3 should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/examples/bolt/controller/user.go
    • Line 26: warning: comment on exported type UserController should be of the form "UserController ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported method UserController.GetById should be of the form "GetById ..." (golint)
    • Line 65: warning: comment on exported method UserController.DeleteById should be of the form "DeleteById ..." (golint)
    • /hidevops.io/hiboot-data/starter/amqp/amqpclient.go
    • Line 11: warning: exported type Channel should have comment or be unexported (golint)
    • Line 15: warning: exported type Properties should have comment or be unexported (golint)
    • Line 27: warning: exported type AmqpClient should have comment or be unexported (golint)
    • Line 36: warning: exported method Channel.Connect should have comment or be unexported (golint)
    • Line 47: warning: exported method Channel.Receive should have comment or be unexported (golint)
    • Line 58: warning: exported method Channel.ReceiveFanout should have comment or be unexported (golint)
    • Line 86: warning: exported method Channel.PublishDirect should have comment or be unexported (golint)
    • Line 104: warning: exported method Channel.PublishFanout should have comment or be unexported (golint)
    • Line 111: warning: exported method Channel.Push should have comment or be unexported (golint)
    • Line 118: warning: exported function BytesToString should have comment or be unexported (golint)
    • Line 138: warning: exported method Channel.Create should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/starter/bolt/repository.go
    • Line 25: warning: exported type Repository should have comment or be unexported (golint)
    • Line 37: warning: error var InvalidPropertiesError should have name of the form ErrFoo (golint)
    • Line 37: warning: exported var InvalidPropertiesError should have comment or be unexported (golint)
    • Line 39: warning: exported function GetRepository should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/starter/repository.go
    • Line 19: warning: error var InvalidDataSourceError should have name of the form ErrFoo (golint)
    • Line 19: warning: exported var InvalidDataSourceError should have comment or be unexported (golint)
    • Line 20: warning: error var InvalidDataModelError should have name of the form ErrFoo (golint)
    • Line 20: warning: exported var InvalidDataModelError should have comment or be unexported (golint)
    • Line 21: warning: error var NotImplementedError should have name of the form ErrFoo (golint)
    • Line 21: warning: exported var NotImplementedError should have comment or be unexported (golint)
    • Line 23: warning: exported type Repository should have comment or be unexported (golint)
    • Line 29: warning: exported type BaseRepository should have comment or be unexported (golint)
    • Line 32: warning: exported method BaseRepository.SetDataSource should have comment or be unexported (golint)
    • Line 36: warning: exported method BaseRepository.DataSource should have comment or be unexported (golint)
    • Line 40: warning: exported method BaseRepository.CloseDataSource should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/examples/bolt/service/user.go
    • Line 23: warning: exported type UserService should have comment or be unexported (golint)
    • Line 38: warning: exported method UserService.AddUser should have comment or be unexported (golint)
    • Line 42: warning: exported method UserService.GetUser should have comment or be unexported (golint)
    • Line 48: warning: exported method UserService.DeleteUser should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/examples/etcd/service/user.go
    • Line 29: warning: exported type UserService should have comment or be unexported (golint)
    • Line 35: warning: exported type UserServiceImpl should have comment or be unexported (golint)
    • Line 49: warning: exported method UserServiceImpl.AddUser should have comment or be unexported (golint)
    • Line 67: warning: exported method UserServiceImpl.GetUser should have comment or be unexported (golint)
    • Line 90: warning: exported method UserServiceImpl.DeleteUser should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/starter/gorm/datasource.go
    • Line 21: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 32: warning: exported type Repository should have comment or be unexported (golint)
    • Line 36: warning: exported type DataSource should have comment or be unexported (golint)
    • Line 47: warning: error var DatabaseIsNotOpenedError should have name of the form ErrFoo (golint)
    • Line 47: warning: exported var DatabaseIsNotOpenedError should have comment or be unexported (golint)
    • Line 51: warning: exported function GetDataSource should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/starter/gorm/fake/datasource.go
    • Line 5: warning: exported type DataSource should have comment or be unexported (golint)
    • Line 8: warning: exported method DataSource.Open should have comment or be unexported (golint)
    • Line 12: warning: exported method DataSource.Close should have comment or be unexported (golint)
    • Line 16: warning: exported method DataSource.IsOpened should have comment or be unexported (golint)
    • Line 20: warning: exported method DataSource.Repository should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/examples/amqp/controller/user.go
    • Line 24: warning: comment on exported type UserController should be of the form "UserController ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported method UserController.Publish should be of the form "Publish ..." (golint)
    • Line 49: warning: exported method UserController.Push should have comment or be unexported (golint)
    • Line 54: warning: exported method UserController.Receive should have comment or be unexported (golint)
    • Line 59: warning: exported method UserController.Receive1 should have comment or be unexported (golint)
    • Line 64: warning: exported method UserController.Create should have comment or be unexported (golint)
    • Line 69: warning: exported method UserController.Create1 should have comment or be unexported (golint)
    • /hidevops.io/hiboot-data/starter/etcd/fake/repository.go
    • Line 23: warning: exported type Repository should have comment or be unexported (golint)
    • Line 27: warning: exported method Repository.Put should have comment or be unexported (golint)
    • Line 32: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 37: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • Line 42: warning: exported method Repository.Compact should have comment or be unexported (golint)
    • Line 46: warning: exported method Repository.Do should have comment or be unexported (golint)
    • Line 50: warning: exported method Repository.Txn 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!