Preparing report...

Report for github.com/EGaaS/go-egaas-mvp

A+    Excellent!    Found 94 issues across 236 files

Tweet

gofmt87%

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!


gocyclo74%

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.

    • go-egaas-mvp/packages/utils/smart_u.go
    • Line 1807: warning: cyclomatic complexity 34 of function TXForm() is high (> 15) (gocyclo)
    • Line 1308: warning: cyclomatic complexity 27 of function Table() is high (> 15) (gocyclo)
    • Line 1658: warning: cyclomatic complexity 26 of function TXButton() is high (> 15) (gocyclo)
    • Line 916: warning: cyclomatic complexity 20 of function getClass() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 18 of function ifValue() is high (> 15) (gocyclo)

golint94%

Golint is a linter for Go source code.

    • go-egaas-mvp/packages/test/test.go
    • Line 25: warning: exported type WantString should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function RandBytes should be of the form "RandBytes ..." (golint)
    • Line 41: warning: exported function HexToBytes should have comment or be unexported (golint)
    • go-egaas-mvp/packages/consts/consts.go
    • Line 19: warning: comment on exported const VERSION should be of the form "VERSION ..." (golint)
    • Line 22: warning: exported const FIRST_QDLT should have comment or be unexported (golint)
    • Line 23: warning: exported const EGS_DIGIT should have comment or be unexported (golint)
    • Line 25: warning: comment on exported const COUNT_CONFIRMED_NODES should be of the form "COUNT_CONFIRMED_NODES ..." (golint)
    • Line 27: warning: exported const WAIT_CONFIRMED_NODES should have comment or be unexported (golint)
    • Line 29: warning: comment on exported const MIN_CONFIRMED_NODES should be of the form "MIN_CONFIRMED_NODES ..." (golint)
    • Line 32: warning: comment on exported const LAST_BLOCK should be of the form "LAST_BLOCK ..." (golint)
    • Line 35: warning: comment on exported const BLOCKCHAIN_SIZE should be of the form "BLOCKCHAIN_SIZE ..." (golint)
    • Line 38: warning: comment on exported const BLOCKCHAIN_URL should be of the form "BLOCKCHAIN_URL ..." (golint)
    • Line 41: warning: comment on exported const MAX_TX_FORW should be of the form "MAX_TX_FORW ..." (golint)
    • Line 44: warning: comment on exported const MAX_TX_BACK should be of the form "MAX_TX_BACK ..." (golint)
    • Line 47: warning: exported const MAX_BLOCK_SIZE should have comment or be unexported (golint)
    • Line 49: warning: exported const MAX_TX_SIZE should have comment or be unexported (golint)
    • Line 51: warning: exported const MAX_TX_COUNT should have comment or be unexported (golint)
    • Line 54: warning: exported const MAX_COLUMNS should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported const ERROR_TIME should have comment or be unexported (golint)
    • Line 60: warning: exported const ROUND_FIX should have comment or be unexported (golint)
    • Line 62: warning: comment on exported const READ_TIMEOUT should be of the form "READ_TIMEOUT ..." (golint)
    • Line 64: warning: exported const WRITE_TIMEOUT should have comment or be unexported (golint)
    • Line 66: warning: comment on exported const OUT_CONNECTIONS should be of the form "OUT_CONNECTIONS ..." (golint)
    • Line 69: warning: exported const GAPS_BETWEEN_BLOCKS should have comment or be unexported (golint)
    • Line 70: warning: exported const COMMISSION should have comment or be unexported (golint)
    • Line 71: warning: exported const TCP_PORT should have comment or be unexported (golint)
    • Line 72: warning: exported const MAX_BLOCK_USER_TXS should have comment or be unexported (golint)
    • Line 73: warning: exported const RB_BLOCKS_1 should have comment or be unexported (golint)
    • Line 74: warning: exported const RB_BLOCKS_2 should have comment or be unexported (golint)
    • Line 75: warning: exported const ALERT_ERROR_TIME should have comment or be unexported (golint)
    • Line 77: warning: exported const DATA_TYPE_MAX_BLOCK_ID should have comment or be unexported (golint)
    • Line 78: warning: exported const DATA_TYPE_BLOCK_BODY should have comment or be unexported (golint)
    • Line 80: warning: exported const CHANGE_KEY_PERIOD should have comment or be unexported (golint)
    • Line 82: warning: exported const UPD_FULL_NODES_PERIOD should have comment or be unexported (golint)
    • Line 84: warning: exported const RATE_VOTING_PERIOD should have comment or be unexported (golint)
    • Line 86: warning: exported const RECOVERY_ADDRESS should have comment or be unexported (golint)
    • Line 88: warning: exported const COMMISSION_WALLET should have comment or be unexported (golint)
    • Line 90: warning: exported const COUNT_BLOCK_BEFORE_SAVE should have comment or be unexported (golint)
    • Line 92: warning: exported const ALERT_KEY should have comment or be unexported (golint)
    • Line 93: warning: exported const UPD_AND_VER_URL should have comment or be unexported (golint)
    • Line 94: warning: exported const GOOGLE_API_KEY should have comment or be unexported (golint)
    • go-egaas-mvp/daylight.go
    • Line 34: warning: don't use underscores in Go names; func main_loader should be mainLoader (golint)
    • Line 38: warning: don't use underscores in Go names; func main_loader_html should be mainLoaderHTML (golint)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words