Preparing report...

Report for github.com/totoval/crypto-alert

F    ... is for lots of things to Fix!    Found 37 issues across 53 files

Tweet

gofmt0%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/totoval/crypto-alert/app/console/commands/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (exit status 2)


golint30%

Golint is a linter for Go source code.

    • crypto-alert/app/logics/alert/alert.go
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported type Response should have comment or be unexported (golint)
    • Line 38: warning: exported type Tick should have comment or be unexported (golint)
    • Line 43: warning: exported type TickData should have comment or be unexported (golint)
    • Line 106: warning: exported type Direction should have comment or be unexported (golint)
    • Line 109: warning: exported const Up should have comment (or a comment on this block) or be unexported (golint)
    • crypto-alert/app/logics/alert/notifiers/pushover.go
    • Line 11: warning: exported const PushOverMessageUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Pushover should have comment or be unexported (golint)
    • Line 17: warning: exported method Pushover.Notify should have comment or be unexported (golint)
    • crypto-alert/app/models/user_affiliation.go
    • Line 19: warning: exported const AFFILIATION_CODE_LENGTH should have comment or be unexported (golint)
    • Line 21: warning: exported type UserAffiliation should have comment or be unexported (golint)
    • Line 36: warning: exported method UserAffiliation.TableName should have comment or be unexported (golint)
    • Line 40: warning: exported method UserAffiliation.Default should have comment or be unexported (golint)
    • Line 53: warning: exported method UserAffiliation.InsertNode should have comment or be unexported (golint)
    • Line 151: warning: exported method UserAffiliation.Tree should have comment or be unexported (golint)
    • Line 173: warning: exported method UserAffiliation.CountByParent should have comment or be unexported (golint)
    • Line 183: warning: exported method UserAffiliation.TreeByParent should have comment or be unexported (golint)
    • Line 206: warning: exported type Tree should have comment or be unexported (golint)
    • Line 213: warning: exported method UserAffiliation.All should have comment or be unexported (golint)
    • Line 267: warning: exported method UserAffiliation.ObjArr should have comment or be unexported (golint)
    • Line 274: warning: exported method UserAffiliation.ObjArrPaginate should have comment or be unexported (golint)
    • crypto-alert/app/logics/alert/fetchers/huobi.go
    • Line 14: warning: exported const HuobiMarketTradeBaseUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type HuoBi should have comment or be unexported (golint)
    • Line 20: warning: exported method HuoBi.Fetch should have comment or be unexported (golint)
    • crypto-alert/app/http/controllers/user.go
    • Line 19: warning: exported type User should have comment or be unexported (golint)
    • Line 23: warning: exported method User.LogOut should have comment or be unexported (golint)
    • Line 32: warning: exported method User.Info should have comment or be unexported (golint)
    • Line 48: warning: exported method User.AllUser should have comment or be unexported (golint)
    • Line 59: warning: exported method User.PaginateUser should have comment or be unexported (golint)
    • Line 70: warning: exported method User.Update should have comment or be unexported (golint)
    • Line 97: warning: exported method User.Delete should have comment or be unexported (golint)
    • Line 110: warning: exported method User.DeleteTransaction should have comment or be unexported (golint)
    • Line 133: warning: exported method User.Restore should have comment or be unexported (golint)
    • crypto-alert/database/migrations/create_failed_queue_table_1556612225.go
    • Line 15: warning: exported type FailedQueue should have comment or be unexported (golint)
    • Line 34: warning: exported method FailedQueue.TableName should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateFailedQueueTable1556612225 should have comment or be unexported (golint)
    • Line 43: warning: exported method CreateFailedQueueTable1556612225.Up should have comment or be unexported (golint)
    • Line 48: warning: exported method CreateFailedQueueTable1556612225.Down should have comment or be unexported (golint)
    • crypto-alert/database/migrations/create_user_table_1548750742.go
    • Line 15: warning: exported type User should have comment or be unexported (golint)
    • Line 26: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 30: warning: exported type CreateUserTable1548750742 should have comment or be unexported (golint)
    • Line 35: warning: exported method CreateUserTable1548750742.Up should have comment or be unexported (golint)
    • Line 40: warning: exported method CreateUserTable1548750742.Down should have comment or be unexported (golint)
    • crypto-alert/app/models/user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 21: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 25: warning: exported method User.Default should have comment or be unexported (golint)
    • Line 29: warning: exported method User.Scan should have comment or be unexported (golint)
    • Line 39: warning: exported method User.Value should have comment or be unexported (golint)
    • Line 43: warning: exported method User.User should have comment or be unexported (golint)
    • Line 48: warning: exported method User.ObjArr should have comment or be unexported (golint)
    • Line 55: warning: exported method User.ObjArrPaginate should have comment or be unexported (golint)
    • crypto-alert/database/migrations/create_user_affiliation_table_1553678539.go
    • Line 15: warning: exported type UserAffiliation should have comment or be unexported (golint)
    • Line 30: warning: exported method UserAffiliation.TableName should have comment or be unexported (golint)
    • Line 34: warning: exported type CreateUserAffiliationTable1553678539 should have comment or be unexported (golint)
    • Line 39: warning: exported method CreateUserAffiliationTable1553678539.Up should have comment or be unexported (golint)
    • Line 44: warning: exported method CreateUserAffiliationTable1553678539.Down should have comment or be unexported (golint)
    • crypto-alert/app/jobs/example.go
    • Line 15: warning: exported type ExampleJob should have comment or be unexported (golint)
    • Line 19: warning: exported method ExampleJob.Retries should have comment or be unexported (golint)
    • Line 23: warning: exported method ExampleJob.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method ExampleJob.ParamProto should have comment or be unexported (golint)
    • Line 31: warning: exported method ExampleJob.Handle should have comment or be unexported (golint)
    • crypto-alert/app/models/failed_queue.go
    • Line 14: warning: exported type FailedQueue should have comment or be unexported (golint)
    • Line 33: warning: exported method FailedQueue.TableName should have comment or be unexported (golint)
    • Line 36: warning: exported method FailedQueue.RetryTopic should have comment or be unexported (golint)
    • Line 40: warning: exported method FailedQueue.RetryChannel should have comment or be unexported (golint)
    • Line 44: warning: exported method FailedQueue.RetryRetries should have comment or be unexported (golint)
    • Line 48: warning: exported method FailedQueue.RetryDelay should have comment or be unexported (golint)
    • Line 52: warning: exported method FailedQueue.RetryParamProtoBytes should have comment or be unexported (golint)
    • Line 55: warning: exported method FailedQueue.RetryHash should have comment or be unexported (golint)
    • Line 59: warning: exported method FailedQueue.Default should have comment or be unexported (golint)
    • Line 63: warning: exported method FailedQueue.FailedToDatabase should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method FailedQueue.FailedQueueById should be of the form "FailedQueueById ..." (golint)
    • Line 105: warning: exported method FailedQueue.DeleteQueueById should have comment or be unexported (golint)
    • Line 113: warning: exported method FailedQueue.DeleteAll should have comment or be unexported (golint)
    • Line 118: warning: exported method FailedQueue.ObjArr should have comment or be unexported (golint)
    • Line 125: warning: exported method FailedQueue.ObjArrPaginate should have comment or be unexported (golint)
    • crypto-alert/app/listeners/add_user_affiliation.go
    • Line 21: warning: exported type AddUserAffiliation should have comment or be unexported (golint)
    • Line 27: warning: exported method AddUserAffiliation.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method AddUserAffiliation.Subscribe should have comment or be unexported (golint)
    • Line 37: warning: exported method AddUserAffiliation.Construct should have comment or be unexported (golint)
    • Line 58: warning: exported method AddUserAffiliation.Handle should have comment or be unexported (golint)

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!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)