Preparing report...

Report for github.com/pongch/omgo

A+    Excellent!    Found 15 issues across 37 files

Tweet

gofmt91%

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!


gocyclo97%

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.


golint72%

Golint is a linter for Go source code.

    • omgo/childchain/client.go
    • Line 27: warning: comment on exported type HttpClient should be of the form "HttpClient ..." (with optional leading article) (golint)
    • omgo/childchain/tx_get.go
    • Line 24: warning: comment on exported type TransactionGetResponse should be of the form "TransactionGetResponse ..." (with optional leading article) (golint)
    • omgo/util/util.go
    • Line 29: warning: exported const EthCurrency should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type DepositTransaction should be of the form "DepositTransaction ..." (with optional leading article) (golint)
    • Line 44: warning: exported type InputDeposit should have comment or be unexported (golint)
    • Line 50: warning: exported type DepositOutput should have comment or be unexported (golint)
    • Line 55: warning: exported type OutputData should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function SignHash should be of the form "SignHash ..." (golint)
    • Line 82: warning: comment on exported function GenerateAccount should be of the form "GenerateAccount ..." (golint)
    • Line 93: warning: comment on exported function DeriveAddress should be of the form "DeriveAddress ..." (golint)
    • Line 103: warning: comment on exported function RemoveLeadingZeroX should be of the form "RemoveLeadingZeroX ..." (golint)
    • Line 109: warning: comment on exported function FilterZeroX should be of the form "FilterZeroX ..." (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 118: warning: exported function ConvertStringToInt should have comment or be unexported (golint)
    • Line 139: warning: exported function BuildRLPDeposit should have comment or be unexported (golint)
    • Line 162: warning: comment on exported function LogFormatter should be of the form "LogFormatter ..." (golint)
    • omgo/rootchain/process.go
    • Line 44: warning: comment on exported type ProcessExitOption should be of the form "ProcessExitOption ..." (with optional leading article) (golint)
    • Line 95: warning: comment on exported method ProcessExitTransaction.Options should be of the form "Options ..." (golint)
    • Line 101: warning: comment on exported method ProcessExitTransaction.Build should be of the form "Build ..." (golint)
    • omgo/childchain/payment_tx.go
    • Line 65: warning: exported type PaymentOption should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.NewPaymentTx should have comment or be unexported (golint)
    • Line 77: warning: exported function AddOwner should have comment or be unexported (golint)
    • Line 83: warning: exported function AddFee should have comment or be unexported (golint)
    • Line 89: warning: exported function AddPayment should have comment or be unexported (golint)
    • Line 101: warning: exported function AddMetadata should have comment or be unexported (golint)
    • Line 181: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • omgo/childchain/status.go
    • Line 21: warning: comment on exported type ContractAddr should be of the form "ContractAddr ..." (with optional leading article) (golint)
    • Line 30: warning: exported type WatcherStatus should have comment or be unexported (golint)
    • omgo/util/client_chch.go
    • Line 25: warning: exported type ChChRequester should have comment or be unexported (golint)
    • Line 29: warning: exported function SendChChReq should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words