Preparing report...

Report for github.com/ross-weir/rosetta-ergo

(v0.0.1)

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


gocyclo100%

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.

No problems detected. Good job!


golint90%

Golint is a linter for Go source code.

    • indexer/indexer.go
    • Line 48: warning: exported type Indexer should have comment or be unexported (golint)
    • Line 78: warning: exported function InitIndexer should have comment or be unexported (golint)
    • Line 167: warning: exported method Indexer.Sync should have comment or be unexported (golint)
    • Line 308: warning: exported method Indexer.GetHeadBlockIdentifier should have comment or be unexported (golint)
    • Line 312: warning: exported method Indexer.GetBlock should have comment or be unexported (golint)
    • ergo/client.go
    • Line 37: warning: exported type Client should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function LocalNodeURL should be of the form "LocalNodeURL ..." (golint)
    • Line 52: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 83: warning: comment on exported method Client.NetworkStatus should be of the form "NetworkStatus ..." (golint)
    • Line 109: warning: comment on exported method Client.GetPeers should be of the form "GetPeers ..." (golint)
    • Line 129: warning: comment on exported method Client.GetNodeInfo should be of the form "GetNodeInfo ..." (golint)
    • Line 141: warning: comment on exported method Client.GetRawBlock should be of the form "GetRawBlock ..." (golint)
    • ergo/conversion.go
    • Line 16: warning: comment on exported function ErgoBlockToRosetta should be of the form "ErgoBlockToRosetta ..." (golint)
    • ergo/types.go
    • Line 6: warning: comment on exported const Blockchain should be of the form "Blockchain ..." (golint)
    • Line 9: warning: comment on exported const MainnetNetwork should be of the form "MainnetNetwork ..." (golint)
    • Line 12: warning: comment on exported const TestnetNetwork should be of the form "TestnetNetwork ..." (golint)
    • Line 15: warning: exported const ErgDecimals should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const NanoErgInErg should be of the form "NanoErgInErg ..." (golint)
    • Line 20: warning: comment on exported const InputOpType should be of the form "InputOpType ..." (golint)
    • Line 23: warning: comment on exported const OutputOpType should be of the form "OutputOpType ..." (golint)
    • Line 28: warning: exported var MainnetGenesisBlockIdentifier should have comment or be unexported (golint)
    • configuration/configuration.go
    • Line 21: warning: exported const Online should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const EnvVarPrefix should be of the form "EnvVarPrefix ..." (golint)
    • Line 43: warning: comment on exported const RosettaModeEnv should be of the form "RosettaModeEnv ..." (golint)
    • Line 48: warning: comment on exported const RosettaDataDirEnv should be of the form "RosettaDataDirEnv ..." (golint)
    • Line 53: warning: comment on exported const NetworkEnv should be of the form "NetworkEnv ..." (golint)
    • Line 57: warning: comment on exported const RosettaPortEnv should be of the form "RosettaPortEnv ..." (golint)
    • Line 61: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function LoadConfiguration should be of the form "LoadConfiguration ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!