Preparing report...

Report for github.com/scryinfo/dp

A+    Excellent!    Found 15 issues across 95 files

Tweet

gofmt97%

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!


gocyclo93%

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.


golint86%

Golint is a linter for Go source code.

    • dp/dots/eth/scan/connect.go
    • Line 13: warning: exported const ConnectTypeId should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: comment on exported type Connect should be of the form "Connect ..." (with optional leading article) (golint)
    • Line 38: warning: exported method Connect.Sender should have comment or be unexported (golint)
    • Line 95: warning: comment on exported function ConnectTypeLives should be of the form "ConnectTypeLives ..." (golint)
    • Line 107: warning: comment on exported function ConnectConfigTypeLives should be of the form "ConnectConfigTypeLives ..." (golint)
    • dp/dots/eth/scan/eth_client_api_key_imp.go
    • Line 19: warning: comment on exported type EthClientApiKeyImp should be of the form "EthClientApiKeyImp ..." (with optional leading article) (golint)
    • Line 26: warning: exported function NewEthClientApiKeyImp should have comment or be unexported (golint)
    • Line 38: warning: exported method EthClientApiKeyImp.Close should have comment or be unexported (golint)
    • Line 42: warning: exported method EthClientApiKeyImp.ChainID should have comment or be unexported (golint)
    • Line 46: warning: exported method EthClientApiKeyImp.BlockByHash should have comment or be unexported (golint)
    • Line 50: warning: exported method EthClientApiKeyImp.BlockByNumber should have comment or be unexported (golint)
    • Line 71: warning: exported method EthClientApiKeyImp.HeaderByHash should have comment or be unexported (golint)
    • Line 75: warning: exported method EthClientApiKeyImp.HeaderByNumber should have comment or be unexported (golint)
    • Line 79: warning: exported method EthClientApiKeyImp.TransactionByHash should have comment or be unexported (golint)
    • Line 111: warning: exported method EthClientApiKeyImp.TransactionSender should have comment or be unexported (golint)
    • Line 115: warning: exported method EthClientApiKeyImp.TransactionCount should have comment or be unexported (golint)
    • Line 119: warning: exported method EthClientApiKeyImp.TransactionInBlock should have comment or be unexported (golint)
    • Line 123: warning: exported method EthClientApiKeyImp.TransactionReceipt should have comment or be unexported (golint)
    • Line 151: warning: exported method EthClientApiKeyImp.SyncProgress should have comment or be unexported (golint)
    • Line 155: warning: exported method EthClientApiKeyImp.SubscribeNewHead should have comment or be unexported (golint)
    • Line 159: warning: exported method EthClientApiKeyImp.NetworkID should have comment or be unexported (golint)
    • Line 163: warning: exported method EthClientApiKeyImp.BalanceAt should have comment or be unexported (golint)
    • Line 198: warning: exported method EthClientApiKeyImp.StorageAt should have comment or be unexported (golint)
    • Line 202: warning: exported method EthClientApiKeyImp.CodeAt should have comment or be unexported (golint)
    • Line 206: warning: exported method EthClientApiKeyImp.NonceAt should have comment or be unexported (golint)
    • Line 220: warning: exported method EthClientApiKeyImp.FilterLogs should have comment or be unexported (golint)
    • Line 224: warning: exported method EthClientApiKeyImp.SubscribeFilterLogs should have comment or be unexported (golint)
    • Line 228: warning: exported method EthClientApiKeyImp.PendingBalanceAt should have comment or be unexported (golint)
    • Line 232: warning: exported method EthClientApiKeyImp.PendingStorageAt should have comment or be unexported (golint)
    • Line 236: warning: exported method EthClientApiKeyImp.PendingCodeAt should have comment or be unexported (golint)
    • Line 240: warning: exported method EthClientApiKeyImp.PendingNonceAt should have comment or be unexported (golint)
    • Line 250: warning: exported method EthClientApiKeyImp.PendingTransactionCount should have comment or be unexported (golint)
    • Line 254: warning: exported method EthClientApiKeyImp.CallContract should have comment or be unexported (golint)
    • Line 258: warning: exported method EthClientApiKeyImp.PendingCallContract should have comment or be unexported (golint)
    • Line 262: warning: exported method EthClientApiKeyImp.SuggestGasPrice should have comment or be unexported (golint)
    • Line 266: warning: exported method EthClientApiKeyImp.EstimateGas should have comment or be unexported (golint)
    • Line 270: warning: exported method EthClientApiKeyImp.SendTransaction should have comment or be unexported (golint)
    • dp/dots/eth/scan/scan_api_key.go
    • Line 14: warning: exported const ScanApiKeyTypeId should have comment or be unexported (golint)
    • Line 25: warning: exported type ScanApiKey should have comment or be unexported (golint)
    • Line 175: warning: exported method ScanApiKey.Start should have comment or be unexported (golint)
    • Line 186: warning: exported method ScanApiKey.Stop should have comment or be unexported (golint)
    • Line 219: warning: comment on exported function ScanApiKeyTypeLives should be of the form "ScanApiKeyTypeLives ..." (golint)
    • Line 238: warning: comment on exported function ScanApiKeyConfigTypeLive should be of the form "ScanApiKeyConfigTypeLive ..." (golint)
    • dp/dots/eth/scan/scan_web3.go
    • Line 14: warning: exported const ScanTypeId should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; const IntervalScanCall_ should be IntervalScanCall (golint)
    • Line 17: warning: exported const IntervalScanCall_ should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; const IntervalBlock_ should be IntervalBlock (golint)
    • Line 19: warning: don't use underscores in Go names; const IntervalTx_ should be IntervalTx (golint)
    • Line 20: warning: don't use underscores in Go names; const SafeBlockDiffer_ should be SafeBlockDiffer (golint)
    • Line 23: warning: exported type ScanConfig should have comment or be unexported (golint)
    • Line 31: warning: exported type ScanCall should have comment or be unexported (golint)
    • Line 38: warning: exported type ScanWeb3 should have comment or be unexported (golint)
    • Line 48: warning: exported method ScanWeb3.SetConfig should have comment or be unexported (golint)
    • Line 54: warning: exported method ScanWeb3.Stop should have comment or be unexported (golint)
    • Line 60: warning: exported method ScanWeb3.Start should have comment or be unexported (golint)
    • Line 227: warning: comment on exported function ScanWeb3TypeLives should be of the form "ScanWeb3TypeLives ..." (golint)
    • dp/dots/depot/variflight/golang/grpc-websocket-server.go
    • Line 16: warning: exported const GrpcWebSocketServerTypeId should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type GrpcWebSocketServer should have comment or be unexported (golint)
    • Line 24: warning: exported function GrpcWebSocketServerTypeLives should have comment or be unexported (golint)
    • Line 50: warning: exported method GrpcWebSocketServer.AfterAllInject should have comment or be unexported (golint)
    • dp/dots/depot/variflight/golang/dao/api.go
    • Line 24: warning: exported const ApiTypeId should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type ApiConfig should have comment or be unexported (golint)
    • Line 64: warning: exported function ApiTypeLives should have comment or be unexported (golint)
    • Line 94: warning: exported method Api.AfterAllInject should have comment or be unexported (golint)
    • dp/dots/eth/scan/erc20_kit.go
    • Line 13: warning: exported const ScryTokenABI should have comment or be unexported (golint)
    • Line 74: warning: comment on exported function UnPackInputs should be of the form "UnPackInputs ..." (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 90: warning: comment on exported method Erc20Kit.GenerateTransfer should be of the form "GenerateTransfer ..." (golint)
    • Line 99: warning: comment on exported method Erc20Kit.PackInputsForTransfer should be of the form "PackInputsForTransfer ..." (golint)
    • Line 104: warning: comment on exported method Erc20Kit.UnPackInputsForTransfer should be of the form "UnPackInputsForTransfer ..." (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 119: warning: comment on exported method Erc20Kit.GenerateTransferFrom should be of the form "GenerateTransferFrom ..." (golint)
    • Line 128: warning: comment on exported method Erc20Kit.PackInputsForTransferFrom should be of the form "PackInputsForTransferFrom ..." (golint)
    • Line 133: warning: comment on exported method Erc20Kit.UnPackInputsForTransferFrom should be of the form "UnPackInputsForTransferFrom ..." (golint)
    • Line 144: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dp/dots/depot/variflight/golang/grpc-service-server.go
    • Line 19: warning: exported const GrpcServiceServerTypeId should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type GrpcServiceServer should be of the form "GrpcServiceServer ..." (with optional leading article) (golint)
    • Line 39: warning: exported function GrpcServiceServerTypeLives should have comment or be unexported (golint)
    • Line 54: warning: exported method GrpcServiceServer.GetFlightDataByFlightNumber should have comment or be unexported (golint)
    • Line 92: warning: exported method GrpcServiceServer.GetFlightDataBetweenTwoAirports should have comment or be unexported (golint)
    • Line 126: warning: exported method GrpcServiceServer.GetFlightDataBetweenTwoCities should have comment or be unexported (golint)
    • Line 160: warning: exported method GrpcServiceServer.GetFlightDataByDepartureAndArrivalStatus should have comment or be unexported (golint)
    • dp/dots/depot/variflight/golang/dao/errors.go
    • Line 9: warning: comment on exported const UserNotExists should be of the form "UserNotExists ..." (golint)
    • Line 18: warning: exported const CheckPending should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: comment on exported type VariFlightDataQueryError should be of the form "VariFlightDataQueryError ..." (with optional leading article) (golint)
    • Line 56: warning: exported type VariFlightStatusCode should have comment or be unexported (golint)
    • Line 58: warning: exported type VariFlightStatus should have comment or be unexported (golint)
    • dp/dots/depot/variflight/golang/dao/params.go
    • Line 10: warning: exported const APIMethodByFlightNumber should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type APIParamsConfFunc should have comment or be unexported (golint)
    • Line 27: warning: exported function GetFlightDataByFlightNumber should have comment or be unexported (golint)
    • Line 39: warning: exported function GetFlightDataBetweenTwoAirports should have comment or be unexported (golint)
    • Line 52: warning: exported function GetFlightDataBetweenTwoCities should have comment or be unexported (golint)
    • Line 65: warning: exported function GetFlightDataByDepartureAndArrivalStatus should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!