Preparing report...

Report for github.com/provideplatform/provide-go

A+    Excellent!    Found 11 issues across 35 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!


gocyclo88%

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.

    • provide-go/api/client.go
    • Line 149: warning: cyclomatic complexity 27 of function (*Client).sendRequestWithTLSClientConfig() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 16 of function (*Client).parseResponse() is high (> 15) (gocyclo)
    • provide-go/api/pgrok/tunnel.go
    • Line 314: warning: cyclomatic complexity 20 of function (*Tunnel).forward() is high (> 15) (gocyclo)
    • Line 172: warning: cyclomatic complexity 18 of function (*Tunnel).initSession() is high (> 15) (gocyclo)
    • provide-go/crypto/ethereum.go
    • Line 675: warning: cyclomatic complexity 37 of function coerceAbiParameter() is high (> 15) (gocyclo)
    • Line 489: warning: cyclomatic complexity 19 of function EVMTxFactory() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • provide-go/api/nchain/service.go
    • Line 72: warning: comment on exported function ListAccounts should be of the form "ListAccounts ..." (golint)
    • Line 93: warning: comment on exported function GetAccountDetails should be of the form "GetAccountDetails ..." (golint)
    • Line 115: warning: comment on exported function GetAccountBalance should be of the form "GetAccountBalance ..." (golint)
    • Line 121: warning: comment on exported function CreateBridge should be of the form "CreateBridge ..." (golint)
    • Line 126: warning: comment on exported function ListBridges should be of the form "ListBridges ..." (golint)
    • Line 131: warning: comment on exported function GetBridgeDetails should be of the form "GetBridgeDetails ..." (golint)
    • Line 137: warning: comment on exported function CreateConnector should be of the form "CreateConnector ..." (golint)
    • Line 158: warning: comment on exported function ListConnectors should be of the form "ListConnectors ..." (golint)
    • Line 179: warning: comment on exported function GetConnectorDetails should be of the form "GetConnectorDetails ..." (golint)
    • Line 201: warning: comment on exported function DeleteConnector should be of the form "DeleteConnector ..." (golint)
    • Line 216: warning: comment on exported function CreateContract should be of the form "CreateContract ..." (golint)
    • Line 262: warning: comment on exported function ExecuteContract should be of the form "ExecuteContract ..." (golint)
    • Line 284: warning: comment on exported function ListContracts should be of the form "ListContracts ..." (golint)
    • Line 305: warning: comment on exported function GetContractDetails should be of the form "GetContractDetails ..." (golint)
    • Line 327: warning: comment on exported function VendContractSubscriptionToken should be of the form "VendContractSubscriptionToken ..." (golint)
    • Line 386: warning: comment on exported function ListNetworks should be of the form "ListNetworks ..." (golint)
    • Line 430: warning: comment on exported function ListNetworkAccounts should be of the form "ListNetworkAccounts ..." (golint)
    • Line 452: warning: comment on exported function ListNetworkBlocks should be of the form "ListNetworkBlocks ..." (golint)
    • Line 458: warning: comment on exported function ListNetworkBridges should be of the form "ListNetworkBridges ..." (golint)
    • Line 464: warning: comment on exported function ListNetworkConnectors should be of the form "ListNetworkConnectors ..." (golint)
    • Line 486: warning: comment on exported function ListNetworkContracts should be of the form "ListNetworkContracts ..." (golint)
    • Line 508: warning: comment on exported function GetNetworkContractDetails should be of the form "GetNetworkContractDetails ..." (golint)
    • Line 530: warning: comment on exported function ListNetworkOracles should be of the form "ListNetworkOracles ..." (golint)
    • Line 552: warning: comment on exported function ListNetworkTokens should be of the form "ListNetworkTokens ..." (golint)
    • Line 574: warning: comment on exported function ListNetworkTransactions should be of the form "ListNetworkTransactions ..." (golint)
    • Line 596: warning: comment on exported function GetNetworkTransactionDetails should be of the form "GetNetworkTransactionDetails ..." (golint)
    • Line 640: warning: comment on exported function CreateOracle should be of the form "CreateOracle ..." (golint)
    • Line 661: warning: comment on exported function ListOracles should be of the form "ListOracles ..." (golint)
    • Line 682: warning: comment on exported function GetOracleDetails should be of the form "GetOracleDetails ..." (golint)
    • Line 704: warning: comment on exported function CreateTokenContract should be of the form "CreateTokenContract ..." (golint)
    • Line 725: warning: comment on exported function ListTokenContracts should be of the form "ListTokenContracts ..." (golint)
    • Line 746: warning: comment on exported function GetTokenContractDetails should be of the form "GetTokenContractDetails ..." (golint)
    • Line 768: warning: comment on exported function CreateTransaction should be of the form "CreateTransaction ..." (golint)
    • Line 789: warning: comment on exported function ListTransactions should be of the form "ListTransactions ..." (golint)
    • Line 810: warning: comment on exported function GetTransactionDetails should be of the form "GetTransactionDetails ..." (golint)
    • Line 832: warning: comment on exported function CreateWallet should be of the form "CreateWallet ..." (golint)
    • Line 853: warning: comment on exported function ListWallets should be of the form "ListWallets ..." (golint)
    • Line 874: warning: comment on exported function GetWalletDetails should be of the form "GetWalletDetails ..." (golint)
    • Line 896: warning: comment on exported function ListWalletAccounts should be of the form "ListWalletAccounts ..." (golint)
    • provide-go/api/nchain/tendermint.go
    • Line 7: warning: comment on exported type BaseledgerBlockHeaderResponse should be of the form "BaseledgerBlockHeaderResponse ..." (with optional leading article) (golint)
    • provide-go/common/util/jwt.go
    • Line 93: warning: comment on exported method JWTKeypair.SSHSigner should be of the form "SSHSigner ..." (golint)
    • Line 100: warning: exported type JWTKeypairSSHSigner should have comment or be unexported (golint)
    • provide-go/api/baseline/models.go
    • Line 9: warning: exported const ProtocolMessageOpcodeBaseline should have comment or be unexported (golint)
    • Line 10: warning: exported const ProtocolMessageOpcodeJoin should have comment or be unexported (golint)
    • Line 11: warning: exported const ProtocolMessageOpcodeSync should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell97%

Misspell Finds commonly misspelled English words