Preparing report...

Report for github.com/alanchchen/web3go

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


gocyclo95%

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.


golint78%

Golint is a linter for Go source code.

    • web3go/common/types.go
    • Line 45: warning: exported function NewHash should have comment or be unexported (golint)
    • Line 57: warning: exported function NewAddress should have comment or be unexported (golint)
    • Line 109: warning: exported type Topic should have comment or be unexported (golint)
    • Line 113: warning: exported type Topics should have comment or be unexported (golint)
    • web3go/common/util.go
    • Line 40: warning: exported function IsHex should have comment or be unexported (golint)
    • Line 45: warning: exported function HexToString should have comment or be unexported (golint)
    • Line 52: warning: exported function BytesToHex should have comment or be unexported (golint)
    • Line 64: warning: exported function HexToBytes should have comment or be unexported (golint)
    • Line 78: warning: exported function StringToAddress should have comment or be unexported (golint)
    • Line 84: warning: exported function StringToHash should have comment or be unexported (golint)
    • Line 90: warning: exported function ToBytes should have comment or be unexported (golint)
    • web3go/web3/filter.go
    • Line 42: warning: exported var ErrChannelClosed should have comment or be unexported (golint)
    • Line 50: warning: exported type FilterType should have comment or be unexported (golint)
    • Line 53: warning: exported const TypeNormal should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • web3go/web3/eth_test.go
    • Line 499: warning: ineffectual assignment to err (ineffassign)
    • Line 508: warning: ineffectual assignment to err (ineffassign)
    • Line 541: warning: ineffectual assignment to err (ineffassign)
    • Line 574: warning: ineffectual assignment to err (ineffassign)

misspell91%

Misspell Finds commonly misspelled English words