Preparing report...

Report for github.com/covalenthq/bsp-agent

(v1.0.0)

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


gocyclo91%

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.


golint83%

Golint is a linter for Go source code.

    • internal/types/elrond.go
    • Line 7: warning: exported type ElrondBlockReplica should have comment or be unexported (golint)
    • Line 16: warning: exported function NewBlockResult should have comment or be unexported (golint)
    • Line 27: warning: exported method ElrondBlockReplica.Schema should have comment or be unexported (golint)
    • Line 35: warning: exported type Block should have comment or be unexported (golint)
    • Line 57: warning: exported function NewBlock should have comment or be unexported (golint)
    • Line 68: warning: exported method Block.Schema should have comment or be unexported (golint)
    • Line 76: warning: exported type MiniBlock should have comment or be unexported (golint)
    • Line 85: warning: exported function NewMiniBlock should have comment or be unexported (golint)
    • Line 92: warning: exported method MiniBlock.Schema should have comment or be unexported (golint)
    • Line 100: warning: exported type EpochStartInfo should have comment or be unexported (golint)
    • Line 111: warning: exported function NewEpochStartInfo should have comment or be unexported (golint)
    • Line 122: warning: exported method EpochStartInfo.Schema should have comment or be unexported (golint)
    • Line 130: warning: exported type ElrondTransaction should have comment or be unexported (golint)
    • Line 150: warning: exported function NewTransaction should have comment or be unexported (golint)
    • Line 164: warning: exported method ElrondTransaction.Schema should have comment or be unexported (golint)
    • Line 172: warning: exported type SCResult should have comment or be unexported (golint)
    • Line 192: warning: exported function NewSCResult should have comment or be unexported (golint)
    • Line 208: warning: exported method SCResult.Schema should have comment or be unexported (golint)
    • Line 216: warning: exported type ElrondReceipt should have comment or be unexported (golint)
    • Line 225: warning: exported function NewReceipt should have comment or be unexported (golint)
    • Line 235: warning: exported method ElrondReceipt.Schema should have comment or be unexported (golint)
    • Line 243: warning: exported type Log should have comment or be unexported (golint)
    • Line 249: warning: exported function NewLog should have comment or be unexported (golint)
    • Line 256: warning: exported method Log.Schema should have comment or be unexported (golint)
    • Line 264: warning: exported type Event should have comment or be unexported (golint)
    • Line 271: warning: exported function NewEvent should have comment or be unexported (golint)
    • Line 279: warning: exported method Event.Schema should have comment or be unexported (golint)
    • Line 287: warning: exported type AccountBalanceUpdate should have comment or be unexported (golint)
    • Line 293: warning: exported function NewAccountBalanceUpdate should have comment or be unexported (golint)
    • Line 300: warning: exported method AccountBalanceUpdate.Schema should have comment or be unexported (golint)
    • Line 309: warning: don't use underscores in Go names; var _BlockResult_schema should be _BlockResultSchema (golint)
    • Line 309: warning: don't use underscores in Go names; var _BlockResult_schema_err should be _BlockResultSchemaErr (golint)
    • Line 888: warning: don't use underscores in Go names; var _Block_schema should be _BlockSchema (golint)
    • Line 888: warning: don't use underscores in Go names; var _Block_schema_err should be _BlockSchemaErr (golint)
    • Line 1094: warning: don't use underscores in Go names; var _MiniBlock_schema should be _MiniBlockSchema (golint)
    • Line 1094: warning: don't use underscores in Go names; var _MiniBlock_schema_err should be _MiniBlockSchemaErr (golint)
    • Line 1133: warning: don't use underscores in Go names; var _EpochStartInfo_schema should be _EpochStartInfoSchema (golint)
    • Line 1133: warning: don't use underscores in Go names; var _EpochStartInfo_schema_err should be _EpochStartInfoSchemaErr (golint)
    • Line 1181: warning: don't use underscores in Go names; var _Transaction_schema should be _TransactionSchema (golint)
    • Line 1181: warning: don't use underscores in Go names; var _Transaction_schema_err should be _TransactionSchemaErr (golint)
    • Line 1285: warning: don't use underscores in Go names; var _SCResult_schema should be _SCResultSchema (golint)
    • Line 1285: warning: don't use underscores in Go names; var _SCResult_schema_err should be _SCResultSchemaErr (golint)
    • Line 1389: warning: don't use underscores in Go names; var _Receipt_schema should be _ReceiptSchema (golint)
    • Line 1389: warning: don't use underscores in Go names; var _Receipt_schema_err should be _ReceiptSchemaErr (golint)
    • Line 1433: warning: don't use underscores in Go names; var _Log_schema should be _LogSchema (golint)
    • Line 1433: warning: don't use underscores in Go names; var _Log_schema_err should be _LogSchemaErr (golint)
    • Line 1500: warning: don't use underscores in Go names; var _Event_schema should be _EventSchema (golint)
    • Line 1500: warning: don't use underscores in Go names; var _Event_schema_err should be _EventSchemaErr (golint)
    • Line 1535: warning: don't use underscores in Go names; var _AccountBalanceUpdate_schema should be _AccountBalanceUpdateSchema (golint)
    • Line 1535: warning: don't use underscores in Go names; var _AccountBalanceUpdate_schema_err should be _AccountBalanceUpdateSchemaErr (golint)
    • internal/types/eth.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 11: warning: exported const BloomByteLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type BlockReplica should have comment or be unexported (golint)
    • Line 27: warning: exported type StateSpecimen should have comment or be unexported (golint)
    • Line 33: warning: exported type BlockNonce should have comment or be unexported (golint)
    • Line 35: warning: exported type Bloom should have comment or be unexported (golint)
    • Line 37: warning: exported type Header should have comment or be unexported (golint)
    • Line 56: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 66: warning: exported type Logs should have comment or be unexported (golint)
    • Line 78: warning: exported type Receipt should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!