Preparing report...

Report for github.com/cosmos/ibc-go

A+    Excellent!    Found 42 issues across 301 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!


gocyclo96%

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.


golint93%

Golint is a linter for Go source code.

    • ibc-go/testing/coordinator.go
    • Line 13: warning: exported const ChainIDPrefix should have comment or be unexported (golint)
    • Line 17: warning: exported var TimeIncrement should have comment or be unexported (golint)
    • Line 95: warning: comment on exported method Coordinator.SetupConnections should be of the form "SetupConnections ..." (golint)
    • Line 104: warning: comment on exported method Coordinator.CreateConnections should be of the form "CreateConnections ..." (golint)
    • Line 147: warning: comment on exported method Coordinator.CreateChannels should be of the form "CreateChannels ..." (golint)
    • ibc-go/testing/simapp/test_helpers.go
    • Line 117: warning: exported type GenerateAccountStrategy should have comment or be unexported (golint)
    • Line 167: warning: comment on exported function AddTestAddrsIncremental should be of the form "AddTestAddrsIncremental ..." (golint)
    • Line 208: warning: exported function TestAddr should have comment or be unexported (golint)
    • ibc-go/testing/mock/mock.go
    • Line 25: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported var MockAcknowledgement should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type PortKeeper should be of the form "PortKeeper ..." (with optional leading article) (golint)
    • ibc-go/testing/app.go
    • Line 30: warning: exported var DefaultTestingAppInit should have comment or be unexported (golint)
    • Line 32: warning: exported type TestingApp should have comment or be unexported (golint)
    • Line 50: warning: exported function SetupTestingApp should have comment or be unexported (golint)
    • ibc-go/testing/chain.go
    • Line 143: warning: comment on exported method TestChain.QueryProofAtHeight should be of the form "QueryProofAtHeight ..." (golint)
    • Line 319: warning: comment on exported method TestChain.ConstructUpdateTMClientHeaderWithTrustedHeight should be of the form "ConstructUpdateTMClientHeaderWithTrustedHeight ..." (golint)
    • ibc-go/testing/config.go
    • Line 13: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 17: warning: exported type TendermintConfig should have comment or be unexported (golint)
    • Line 26: warning: exported function NewTendermintConfig should have comment or be unexported (golint)
    • Line 37: warning: exported method TendermintConfig.GetClientType should have comment or be unexported (golint)
    • Line 41: warning: exported type ConnectionConfig should have comment or be unexported (golint)
    • Line 46: warning: exported function NewConnectionConfig should have comment or be unexported (golint)
    • Line 53: warning: exported type ChannelConfig should have comment or be unexported (golint)
    • Line 59: warning: exported function NewChannelConfig should have comment or be unexported (golint)
    • ibc-go/testing/values.go
    • Line 1: warning: package comment should be of the form "Package ibctesting ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 20: warning: exported const FirstClientID should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: comment on exported const TrustingPeriod should be of the form "TrustingPeriod ..." (golint)
    • Line 33: warning: comment on exported const TransferPort should be of the form "TransferPort ..." (golint)
    • Line 37: warning: comment on exported const Title should be of the form "Title ..." (golint)
    • Line 43: warning: exported var DefaultOpenInitVersion should have comment or be unexported (golint)
    • Line 45: warning: comment on exported var DefaultTrustLevel should be of the form "DefaultTrustLevel ..." (golint)
    • ibc-go/testing/mock/privval.go
    • Line 15: warning: comment on exported type PV should be of the form "PV ..." (with optional leading article) (golint)
    • Line 21: warning: exported function NewPV 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.


misspell99%

Misspell Finds commonly misspelled English words