Preparing report...

Report for github.com/sammy007/monero-stratum

(v0.0.0-20191029023423-25f94e28a33e)

A    Great!    Found 10 issues across 15 files

Tweet

gofmt86%

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!


golint33%

Golint is a linter for Go source code.

    • stratum/miner.go
    • Line 18: warning: exported type Job should have comment or be unexported (golint)
    • Line 26: warning: exported type Miner should have comment or be unexported (golint)
    • Line 50: warning: exported function NewMiner should have comment or be unexported (golint)
    • 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 53: warning: exported type StatusReply should have comment or be unexported (golint)
    • Line 57: warning: exported type ErrorReply should have comment or be unexported (golint)
    • pool/pool.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 22: warning: exported type Stratum should have comment or be unexported (golint)
    • Line 27: warning: exported type Port should have comment or be unexported (golint)
    • Line 34: warning: exported type Upstream should have comment or be unexported (golint)
    • Line 41: warning: exported type Frontend should have comment or be unexported (golint)
    • hashing/hashing.go
    • Line 11: warning: exported function Hash should have comment or be unexported (golint)
    • Line 21: warning: exported function FastHash should have comment or be unexported (golint)
    • cnutil/cnutil.go
    • Line 10: warning: exported function ConvertBlob should have comment or be unexported (golint)
    • Line 21: warning: exported function ValidateAddress should have comment or be unexported (golint)
    • util/util.go
    • Line 12: warning: exported var Diff1 should have comment or be unexported (golint)
    • Line 14: warning: exported function StringToBig should have comment or be unexported (golint)
    • Line 20: warning: exported function MakeTimestamp should have comment or be unexported (golint)
    • Line 24: warning: exported function GetTargetHex should have comment or be unexported (golint)
    • Line 34: warning: exported function GetHashDifficulty should have comment or be unexported (golint)
    • Line 45: warning: exported function ValidateAddress should have comment or be unexported (golint)
    • 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 42: warning: exported type GetInfoReply should have comment or be unexported (golint)
    • Line 50: warning: exported type JSONRpcResp should have comment or be unexported (golint)
    • Line 56: warning: exported function NewRPCClient should have comment or be unexported (golint)
    • Line 70: warning: exported method RPCClient.GetBlockTemplate should have comment or be unexported (golint)
    • Line 83: warning: exported method RPCClient.GetInfo should have comment or be unexported (golint)
    • Line 96: warning: exported method RPCClient.SubmitBlock should have comment or be unexported (golint)
    • Line 132: warning: exported method RPCClient.Check should have comment or be unexported (golint)
    • Line 141: warning: exported method RPCClient.Sick should have comment or be unexported (golint)
    • Line 171: warning: exported method RPCClient.UpdateInfo should have comment or be unexported (golint)
    • Line 179: warning: exported method RPCClient.Info should have comment or be unexported (golint)
    • stratum/api.go
    • Line 13: warning: exported method StratumServer.StatsIndex should have comment or be unexported (golint)
    • stratum/stratum.go
    • Line 21: warning: exported type StratumServer should have comment or be unexported (golint)
    • Line 44: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 53: warning: exported type Session should have comment or be unexported (golint)
    • Line 64: warning: exported const MaxReqSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported function NewStratum should have comment or be unexported (golint)
    • Line 158: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 170: warning: exported method StratumServer.Listen should have comment or be unexported (golint)
    • Line 181: warning: exported method Endpoint.Listen 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!