Preparing report...

Report for github.com/kevacoin-project/keva-stratum

A+    Excellent!    Found 9 issues across 13 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!


gocyclo92%

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.


golint30%

Golint is a linter for Go source code.

    • keva-stratum/stratum/stratum.go
    • Line 22: warning: exported type StratumServer should have comment or be unexported (golint)
    • Line 45: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 54: warning: exported type Session should have comment or be unexported (golint)
    • Line 65: warning: exported const MaxReqSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported function NewStratum should have comment or be unexported (golint)
    • Line 173: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 185: warning: exported method StratumServer.Listen should have comment or be unexported (golint)
    • Line 196: warning: exported method Endpoint.Listen should have comment or be unexported (golint)
    • keva-stratum/pool/pool.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported type Stratum should have comment or be unexported (golint)
    • Line 28: warning: exported type Port should have comment or be unexported (golint)
    • Line 35: warning: exported type Upstream should have comment or be unexported (golint)
    • Line 44: warning: exported type Frontend should have comment or be unexported (golint)
    • keva-stratum/util/util.go
    • Line 14: warning: exported var Diff1 should have comment or be unexported (golint)
    • Line 16: warning: exported function StringToBig should have comment or be unexported (golint)
    • Line 22: warning: exported function MakeTimestamp should have comment or be unexported (golint)
    • Line 26: warning: exported function GetTargetHex should have comment or be unexported (golint)
    • Line 36: warning: exported function GetHashDifficulty should have comment or be unexported (golint)
    • Line 47: warning: exported function ValidateAddress_Keva should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func ValidateAddress_Keva should be ValidateAddressKeva (golint)
    • Line 66: warning: exported function ValidateAddress should have comment or be unexported (golint)
    • keva-stratum/rpc/rpc.go
    • Line 17: warning: exported type RPCClient should have comment or be unexported (golint)
    • Line 34: warning: exported type GetBlockTemplateReply should have comment or be unexported (golint)
    • Line 44: warning: exported type GetInfoReply should have comment or be unexported (golint)
    • Line 52: warning: exported type GetBlockHashReply should have comment or be unexported (golint)
    • Line 56: warning: exported type ValidateAddressReply should have comment or be unexported (golint)
    • Line 61: warning: exported type JSONRpcResp should have comment or be unexported (golint)
    • Line 67: warning: exported function NewRPCClient should have comment or be unexported (golint)
    • Line 81: warning: exported method RPCClient.GetBlockTemplate should have comment or be unexported (golint)
    • Line 94: warning: exported method RPCClient.GetInfo should have comment or be unexported (golint)
    • Line 107: warning: exported method RPCClient.SubmitBlock should have comment or be unexported (golint)
    • Line 111: warning: exported method RPCClient.ValidateAddress should have comment or be unexported (golint)
    • Line 115: warning: exported method RPCClient.GetBlockHash should have comment or be unexported (golint)
    • Line 162: warning: exported method RPCClient.Check should have comment or be unexported (golint)
    • Line 171: warning: exported method RPCClient.Sick should have comment or be unexported (golint)
    • Line 201: warning: exported method RPCClient.UpdateInfo should have comment or be unexported (golint)
    • Line 209: warning: exported method RPCClient.Info should have comment or be unexported (golint)
    • keva-stratum/stratum/miner.go
    • Line 17: warning: exported type Job should have comment or be unexported (golint)
    • Line 25: warning: exported type Miner should have comment or be unexported (golint)
    • Line 49: warning: exported function NewMiner should have comment or be unexported (golint)
    • keva-stratum/cnutil/cnutil.go
    • Line 14: warning: exported function ConvertBlob should have comment or be unexported (golint)
    • Line 25: warning: exported function ValidateAddress should have comment or be unexported (golint)
    • Line 34: warning: exported function Hash should have comment or be unexported (golint)
    • Line 55: warning: exported function FastHash should have comment or be unexported (golint)
    • keva-stratum/stratum/proto.go
    • Line 5: warning: exported type JSONRpcReq should have comment or be unexported (golint)
    • Line 11: warning: exported type JSONRpcResp should have comment or be unexported (golint)
    • Line 18: warning: exported type JSONPushMessage should have comment or be unexported (golint)
    • Line 24: warning: exported type LoginParams should have comment or be unexported (golint)
    • Line 30: warning: exported type GetJobParams should have comment or be unexported (golint)
    • Line 34: warning: exported type SubmitParams should have comment or be unexported (golint)
    • Line 41: warning: exported type JobReply should have comment or be unexported (golint)
    • Line 47: warning: exported type JobReplyData should have comment or be unexported (golint)
    • Line 57: warning: exported type StatusReply should have comment or be unexported (golint)
    • Line 61: warning: exported type ErrorReply should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!