Preparing report...

Report for github.com/centrifuge/go-centrifuge

A+    Excellent!    Found 29 issues across 315 files

Tweet

gofmt99%

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!


gocyclo98%

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.


golint98%

Golint is a linter for Go source code.

    • go-centrifuge/http/coreapi/types.go
    • Line 372: warning: comment on exported function ToNFTMintRequestOnCC should be of the form "ToNFTMintRequestOnCC ..." (golint)
    • Line 404: warning: comment on exported type TransferNFTOnCCResponse should be of the form "TransferNFTOnCCResponse ..." (with optional leading article) (golint)
    • go-centrifuge/centchain/events.go
    • Line 174: warning: don't use underscores in Go names; struct field ChainBridge_FungibleTransfer should be ChainBridgeFungibleTransfer (golint)
    • Line 175: warning: don't use underscores in Go names; struct field ChainBridge_NonFungibleTransfer should be ChainBridgeNonFungibleTransfer (golint)
    • Line 176: warning: don't use underscores in Go names; struct field ChainBridge_GenericTransfer should be ChainBridgeGenericTransfer (golint)
    • Line 177: warning: don't use underscores in Go names; struct field ChainBridge_ChainWhitelisted should be ChainBridgeChainWhitelisted (golint)
    • Line 178: warning: don't use underscores in Go names; struct field ChainBridge_RelayerAdded should be ChainBridgeRelayerAdded (golint)
    • Line 179: warning: don't use underscores in Go names; struct field ChainBridge_RelayerThresholdChanged should be ChainBridgeRelayerThresholdChanged (golint)
    • Line 180: warning: don't use underscores in Go names; struct field Nfts_DepositAsset should be NftsDepositAsset (golint)
    • Line 181: warning: don't use underscores in Go names; struct field Fees_FeeChanged should be FeesFeeChanged (golint)
    • Line 182: warning: don't use underscores in Go names; struct field MultiAccount_NewMultiAccount should be MultiAccountNewMultiAccount (golint)
    • Line 183: warning: don't use underscores in Go names; struct field MultiAccount_MultiAccountUpdated should be MultiAccountMultiAccountUpdated (golint)
    • Line 184: warning: don't use underscores in Go names; struct field MultiAccount_MultiAccountRemoved should be MultiAccountMultiAccountRemoved (golint)
    • Line 185: warning: don't use underscores in Go names; struct field MultiAccount_NewMultisig should be MultiAccountNewMultisig (golint)
    • Line 186: warning: don't use underscores in Go names; struct field MultiAccount_MultisigApproval should be MultiAccountMultisigApproval (golint)
    • Line 187: warning: don't use underscores in Go names; struct field MultiAccount_MultisigExecuted should be MultiAccountMultisigExecuted (golint)
    • Line 188: warning: don't use underscores in Go names; struct field MultiAccount_MultisigCancelled should be MultiAccountMultisigCancelled (golint)
    • Line 189: warning: don't use underscores in Go names; struct field Registry_RegistryCreated should be RegistryRegistryCreated (golint)
    • Line 190: warning: don't use underscores in Go names; struct field Registry_Mint should be RegistryMint (golint)
    • Line 191: warning: don't use underscores in Go names; struct field Nft_Transferred should be NftTransferred (golint)
    • go-centrifuge/resources/data.go
    • Line 11: warning: don't use underscores in Go names; func bindata_read should be bindataRead (golint)
    • Line 28: warning: don't use underscores in Go names; var _go_centrifuge_build_configs_default_config_yaml should be _goCentrifugeBuildConfigsDefaultConfigYaml (golint)
    • Line 30: warning: don't use underscores in Go names; func go_centrifuge_build_configs_default_config_yaml should be goCentrifugeBuildConfigsDefaultConfigYaml (golint)
    • Line 37: warning: don't use underscores in Go names; var _go_centrifuge_build_configs_testing_config_yaml should be _goCentrifugeBuildConfigsTestingConfigYaml (golint)
    • Line 39: warning: don't use underscores in Go names; func go_centrifuge_build_configs_testing_config_yaml should be goCentrifugeBuildConfigsTestingConfigYaml (golint)
    • Line 106: warning: don't use underscores in Go names; type _bintree_t should be _bintreeT (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words