Preparing report...

Report for github.com/GenesisCommunity/go-genesis

A+    Excellent!    Found 169 issues across 270 files

Tweet

gofmt96%

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!


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.

    • go-genesis/packages/script/vm.go
    • Line 475: warning: cyclomatic complexity 237 of function (*RunTime).RunCode() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 43 of function (*RunTime).callFunc() is high (> 15) (gocyclo)
    • Line 373: warning: cyclomatic complexity 17 of function valueToBool() is high (> 15) (gocyclo)
    • go-genesis/packages/template/template.go
    • Line 480: warning: cyclomatic complexity 54 of function getFunc() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 46 of function callFunc() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 31 of function setAllAttr() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 18 of function ifValue() is high (> 15) (gocyclo)
    • go-genesis/packages/smart/funcs.go
    • Line 1009: warning: cyclomatic complexity 45 of function TableConditions() is high (> 15) (gocyclo)
    • Line 538: warning: cyclomatic complexity 26 of function CreateTable() is high (> 15) (gocyclo)
    • Line 1161: warning: cyclomatic complexity 23 of function ColumnCondition() is high (> 15) (gocyclo)
    • Line 801: warning: cyclomatic complexity 22 of function DBSelect() is high (> 15) (gocyclo)
    • Line 1806: warning: cyclomatic complexity 18 of function GetHistory() is high (> 15) (gocyclo)
    • Line 1600: warning: cyclomatic complexity 16 of function UpdateNodesBan() is high (> 15) (gocyclo)
    • go-genesis/packages/block/block.go
    • Line 126: warning: cyclomatic complexity 25 of function (*Block).Play() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 18 of function (*Block).Check() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 17 of function (*Block).PlaySafe() is high (> 15) (gocyclo)
    • go-genesis/packages/converter/converter.go
    • Line 247: warning: cyclomatic complexity 27 of function BinUnmarshalBuff() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 24 of function BinUnmarshal() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 19 of function BinMarshal() is high (> 15) (gocyclo)
    • go-genesis/packages/smart/smart.go
    • Line 825: warning: cyclomatic complexity 74 of function (*SmartContract).CallContract() is high (> 15) (gocyclo)
    • Line 655: warning: cyclomatic complexity 30 of function (*SmartContract).AccessColumns() is high (> 15) (gocyclo)
    • go-genesis/packages/api/smart.go
    • Line 109: warning: cyclomatic complexity 23 of function validateSmartContract() is high (> 15) (gocyclo)
    • Line 63: warning: cyclomatic complexity 16 of function validateSmartContractJSON() is high (> 15) (gocyclo)
    • go-genesis/packages/smart/smart_p.go
    • Line 124: warning: cyclomatic complexity 36 of function UpdateSysParam() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 16 of function RollbackEcosystem() is high (> 15) (gocyclo)
    • Line 800: warning: cyclomatic complexity 16 of function RollbackEditContract() is high (> 15) (gocyclo)

golint40%

Golint is a linter for Go source code.

    • go-genesis/packages/tcpserver/protocol.go
    • Line 1: warning: package comment should be of the form "Package tcpserver ..." (golint)
    • Line 96: warning: exported type StopNetworkRequest should have comment or be unexported (golint)
    • Line 100: warning: exported type StopNetworkResponse should have comment or be unexported (golint)
    • Line 252: warning: exported function SendRequestType should have comment or be unexported (golint)
    • go-genesis/tools/desync_monitor/query/utils.go
    • Line 14: warning: exported type ConcurrentMap should have comment or be unexported (golint)
    • Line 19: warning: exported method ConcurrentMap.Set should have comment or be unexported (golint)
    • Line 25: warning: exported method ConcurrentMap.Get should have comment or be unexported (golint)
    • go-genesis/packages/service/node_relevance.go
    • Line 18: warning: exported type NodeRelevanceService should have comment or be unexported (golint)
    • Line 23: warning: exported function NewNodeRelevanceService should have comment or be unexported (golint)
    • Line 59: warning: exported function NodeDoneUpdatingBlockchain should have comment or be unexported (golint)
    • go-genesis/packages/utils/cert.go
    • Line 14: warning: exported type Cert should have comment or be unexported (golint)
    • Line 18: warning: exported method Cert.Validate should have comment or be unexported (golint)
    • Line 31: warning: exported method Cert.EqualBytes should have comment or be unexported (golint)
    • Line 60: warning: exported function ParseCert should have comment or be unexported (golint)
    • go-genesis/packages/crypto/hash.go
    • Line 1: warning: package comment should be of the form "Package crypto ..." (golint)
    • Line 125: warning: exported function NewHash should have comment or be unexported (golint)
    • Line 129: warning: exported function HashHex should have comment or be unexported (golint)
    • go-genesis/packages/block/block.go
    • Line 41: warning: comment on exported method Block.PlaySafe should be of the form "PlaySafe ..." (golint)
    • Line 126: warning: exported method Block.Play should have comment or be unexported (golint)
    • Line 229: warning: comment on exported method Block.Check should be of the form "Check ..." (golint)
    • go-genesis/packages/utils/block_time_calculator.go
    • Line 30: warning: error var TimeError should have name of the form ErrFoo (golint)
    • Line 30: warning: exported var TimeError should have comment or be unexported (golint)
    • Line 31: warning: error var DuplicateBlockError should have name of the form ErrFoo (golint)
    • Line 31: warning: exported var DuplicateBlockError should have comment or be unexported (golint)
    • Line 33: warning: exported function NewBlockTimeCalculator should have comment or be unexported (golint)
    • Line 48: warning: exported method BlockTimeCalculator.TimeToGenerate should have comment or be unexported (golint)
    • Line 66: warning: exported method BlockTimeCalculator.ValidateBlock should have comment or be unexported (golint)
    • Line 84: warning: exported method BlockTimeCalculator.SetClock should have comment or be unexported (golint)
    • go-genesis/packages/smart/funcs.go
    • Line 1: warning: package comment should be of the form "Package smart ..." (golint)
    • Line 67: warning: exported var BOM should have comment or be unexported (golint)
    • Line 319: warning: exported function GetTableName should have comment or be unexported (golint)
    • Line 422: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 427: warning: exported function ValidateEditContractNewValue should have comment or be unexported (golint)
    • Line 454: warning: exported function UpdateContract should have comment or be unexported (golint)
    • Line 499: warning: exported function CreateContract should have comment or be unexported (golint)
    • Line 524: warning: exported function RollbackNewContract should have comment or be unexported (golint)
    • Line 757: warning: exported function PrepareWhere should have comment or be unexported (golint)
    • Line 1355: warning: exported function NewMoney should have comment or be unexported (golint)
    • Line 1439: warning: exported function HMac should have comment or be unexported (golint)
    • Line 1439: warning: don't use underscores in Go names; func parameter raw_output should be rawOutput (golint)
    • Line 1447: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1452: warning: comment on exported function GetMapKeys should be of the form "GetMapKeys ..." (golint)
    • Line 1461: warning: comment on exported function SortedKeys should be of the form "SortedKeys ..." (golint)
    • Line 1477: warning: comment on exported function Date should be of the form "Date ..." (golint)
    • Line 1478: warning: don't use underscores in Go names; func parameter time_format should be timeFormat (golint)
    • Line 1525: warning: don't use underscores in Go names; func parameter json_str should be jsonStr (golint)
    • Line 1556: warning: exported function Random should have comment or be unexported (golint)
    • Line 1564: warning: exported function ValidateCron should have comment or be unexported (golint)
    • Line 1572: warning: exported function UpdateCron should have comment or be unexported (golint)
    • Line 1600: warning: exported function UpdateNodesBan should have comment or be unexported (golint)
    • Line 1699: warning: exported function GetBlock should have comment or be unexported (golint)
    • Line 1761: warning: exported function GetType should have comment or be unexported (golint)
    • Line 1806: warning: exported function GetHistory should have comment or be unexported (golint)
    • Line 1888: warning: exported function GetBlockHistory should have comment or be unexported (golint)
    • Line 1892: warning: exported function GetPageHistory should have comment or be unexported (golint)
    • Line 1896: warning: exported function GetMenuHistory should have comment or be unexported (golint)
    • Line 1900: warning: exported function GetContractHistory should have comment or be unexported (golint)
    • Line 1904: warning: exported function GetHistoryRow should have comment or be unexported (golint)
    • Line 1919: warning: exported function GetBlockHistoryRow should have comment or be unexported (golint)
    • Line 1923: warning: exported function GetPageHistoryRow should have comment or be unexported (golint)
    • Line 1927: warning: exported function GetMenuHistoryRow should have comment or be unexported (golint)
    • Line 1931: warning: exported function GetContractHistoryRow should have comment or be unexported (golint)
    • Line 1935: warning: exported function BlockTime should have comment or be unexported (golint)
    • go-genesis/packages/api/login.go
    • Line 1: warning: package comment should be of the form "Package api ..." (golint)
    • Line 306: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-genesis/packages/transaction/custom/stop_network.go
    • Line 18: warning: exported var ErrNetworkStopping should have comment or be unexported (golint)
    • Line 21: warning: exported type StopNetworkTransaction should have comment or be unexported (golint)
    • Line 28: warning: exported method StopNetworkTransaction.Init should have comment or be unexported (golint)
    • Line 32: warning: exported method StopNetworkTransaction.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method StopNetworkTransaction.Action should have comment or be unexported (golint)
    • Line 74: warning: exported method StopNetworkTransaction.Rollback should have comment or be unexported (golint)
    • Line 78: warning: exported method StopNetworkTransaction.Header should have comment or be unexported (golint)
    • go-genesis/packages/converter/converter.go
    • Line 1: warning: package comment should be of the form "Package converter ..." (golint)
    • Line 51: warning: exported function EncodeLenInt64 should have comment or be unexported (golint)
    • Line 61: warning: exported function EncodeLenInt64InPlace should have comment or be unexported (golint)
    • Line 72: warning: exported function EncodeLenByte should have comment or be unexported (golint)
    • Line 115: warning: exported function DecodeLenInt64Buf should have comment or be unexported (golint)
    • Line 164: warning: exported function DecodeLengthBuf should have comment or be unexported (golint)
    • Line 247: warning: exported function BinUnmarshalBuff should have comment or be unexported (golint)
    • Line 450: warning: exported function EscapeSQL should have comment or be unexported (golint)
    • Line 603: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 830: warning: exported function IsByteColumn should have comment or be unexported (golint)
    • Line 967: warning: exported function Round should have comment or be unexported (golint)
    • go-genesis/packages/utils/utils.go
    • Line 1: warning: package comment should be of the form "Package utils ..." (golint)
    • Line 128: warning: exported var ErrNodesUnavailable should have comment or be unexported (golint)
    • Line 499: warning: comment on exported function ChooseBestHost should be of the form "ChooseBestHost ..." (golint)
    • Line 558: warning: exported function GetHostBlockID should have comment or be unexported (golint)
    • Line 584: warning: exported function GetHostPort should have comment or be unexported (golint)
    • Line 591: warning: exported function BuildBlockTimeCalculator should have comment or be unexported (golint)
    • Line 616: warning: exported function CreateDirIfNotExists should have comment or be unexported (golint)
    • Line 626: warning: exported function LockOrDie should have comment or be unexported (golint)
    • Line 640: warning: exported function ShuffleSlice should have comment or be unexported (golint)
    • Line 641: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 647: warning: exported function UUID should have comment or be unexported (golint)
    • go-genesis/packages/transaction/db.go
    • Line 14: warning: exported var ErrDuplicatedTx should have comment or be unexported (golint)
    • Line 97: warning: exported function MarkTransactionBad should have comment or be unexported (golint)
    • Line 133: warning: comment on exported function ProcessQueueTransaction should be of the form "ProcessQueueTransaction ..." (golint)
    • Line 198: warning: comment on exported function ProcessTransactionsQueue should be of the form "ProcessTransactionsQueue ..." (golint)
    • go-genesis/packages/conf/syspar/syspar.go
    • Line 1: warning: package comment should be of the form "Package syspar ..." (golint)
    • Line 183: warning: exported function GetNodes should have comment or be unexported (golint)
    • Line 212: warning: exported function GetNumberOfNodesFromDB should have comment or be unexported (golint)
    • Line 237: warning: exported function GetNodeByHost should have comment or be unexported (golint)
    • Line 381: warning: comment on exported function GetMaxForsignSize should be of the form "GetMaxForsignSize ..." (golint)
    • Line 411: warning: exported function GetIncorrectBlocksPerDay should have comment or be unexported (golint)
    • Line 415: warning: exported function GetNodeBanTime should have comment or be unexported (golint)
    • Line 419: warning: exported function GetLocalNodeBanTime should have comment or be unexported (golint)
    • go-genesis/packages/service/node_paused.go
    • Line 6: warning: exported const NoPause should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type PauseType should have comment or be unexported (golint)
    • Line 17: warning: exported type NodePaused should have comment or be unexported (golint)
    • Line 23: warning: exported method NodePaused.Set should have comment or be unexported (golint)
    • Line 30: warning: exported method NodePaused.Unset should have comment or be unexported (golint)
    • Line 37: warning: exported method NodePaused.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method NodePaused.IsSet should have comment or be unexported (golint)
    • Line 51: warning: exported function IsNodePaused should have comment or be unexported (golint)
    • Line 55: warning: exported function PauseNodeActivity should have comment or be unexported (golint)
    • Line 59: warning: exported function NodePauseType should have comment or be unexported (golint)
    • go-genesis/tools/desync_monitor/config/config.go
    • Line 7: warning: exported type Daemon should have comment or be unexported (golint)
    • Line 12: warning: exported type AlertMessage should have comment or be unexported (golint)
    • Line 18: warning: exported type Smtp should have comment or be unexported (golint)
    • Line 25: warning: exported type Config should have comment or be unexported (golint)
    • go-genesis/packages/consts/consts.go
    • Line 1: warning: package comment should be of the form "Package consts ..." (golint)
    • Line 97: warning: exported const AvailableBCGap should have comment or be unexported (golint)
    • Line 99: warning: exported const DefaultNodesConnectDelay should have comment or be unexported (golint)
    • Line 101: warning: exported const MaxTXAttempt should have comment or be unexported (golint)
    • Line 104: warning: exported const TxTypeFirstBlock should have comment (or a comment on this block) or be unexported (golint)
    • go-genesis/packages/publisher/publisher.go
    • Line 1: warning: package comment should be of the form "Package publisher ..." (golint)
    • Line 38: warning: exported type ClientsChannels should have comment or be unexported (golint)
    • Line 43: warning: exported method ClientsChannels.Set should have comment or be unexported (golint)
    • Line 49: warning: exported method ClientsChannels.Get should have comment or be unexported (golint)
    • Line 68: warning: exported function GetHMACSign should have comment or be unexported (golint)
    • go-genesis/packages/statsd/statsd.go
    • Line 1: warning: package comment should be of the form "Package statsd ..." (golint)
    • Line 32: warning: exported const Count should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported var Client should have comment or be unexported (golint)
    • Line 38: warning: exported function Init should have comment or be unexported (golint)
    • Line 47: warning: exported function Close should have comment or be unexported (golint)
    • Line 53: warning: exported function APIRouteCounterName should have comment or be unexported (golint)
    • Line 58: warning: exported function DaemonCounterName should have comment or be unexported (golint)
    • go-genesis/packages/utils/tx/multi_request_buffer.go
    • Line 10: warning: exported type MultiRequest should have comment or be unexported (golint)
    • Line 16: warning: exported method MultiRequest.AddContract should have comment or be unexported (golint)
    • Line 23: warning: exported type MultiRequestContract should have comment or be unexported (golint)
    • Line 28: warning: exported type MultiRequestBuffer should have comment or be unexported (golint)
    • Line 35: warning: exported method MultiRequestBuffer.NewMultiRequest should have comment or be unexported (golint)
    • Line 45: warning: exported method MultiRequestBuffer.AddRequest should have comment or be unexported (golint)
    • Line 52: warning: exported method MultiRequestBuffer.GetRequest should have comment or be unexported (golint)
    • Line 83: warning: exported function NewMultiRequestBuffer should have comment or be unexported (golint)
    • go-genesis/packages/utils/tx/request_buffer.go
    • Line 16: warning: exported type Request should have comment or be unexported (golint)
    • Line 24: warning: exported method Request.SetValue should have comment or be unexported (golint)
    • Line 28: warning: exported method Request.GetValue should have comment or be unexported (golint)
    • Line 32: warning: exported method Request.AllValues should have comment or be unexported (golint)
    • Line 36: warning: exported method Request.WriteFile should have comment or be unexported (golint)
    • Line 61: warning: exported method Request.ReadFile should have comment or be unexported (golint)
    • Line 81: warning: exported type FileHeader should have comment or be unexported (golint)
    • Line 86: warning: exported type FileField should have comment or be unexported (golint)
    • Line 91: warning: exported type File should have comment or be unexported (golint)
    • Line 96: warning: exported type RequestBuffer should have comment or be unexported (golint)
    • Line 103: warning: exported method RequestBuffer.ExpireDuration should have comment or be unexported (golint)
    • Line 107: warning: exported method RequestBuffer.NewRequest should have comment or be unexported (golint)
    • Line 121: warning: exported method RequestBuffer.AddRequest should have comment or be unexported (golint)
    • Line 128: warning: exported method RequestBuffer.GetRequest should have comment or be unexported (golint)
    • Line 161: warning: exported function NewRequestBuffer should have comment or be unexported (golint)
    • go-genesis/packages/script/vminit.go
    • Line 1: warning: package comment should be of the form "Package script ..." (golint)
    • Line 80: warning: exported const TagFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 528: warning: exported function MemoryUsage should have comment or be unexported (golint)
    • go-genesis/packages/smart/smart.go
    • Line 1: warning: package comment should be of the form "Package smart ..." (golint)
    • Line 68: warning: exported const MaxPrice should have comment (or a comment on this block) or be unexported (golint)
    • Line 75: warning: exported var ErrCurrentBalance should have comment or be unexported (golint)
    • Line 86: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 144: warning: exported function VMCompileEval should have comment or be unexported (golint)
    • Line 148: warning: exported function VMEvalIf should have comment or be unexported (golint)
    • Line 152: warning: exported function VMFlushBlock should have comment or be unexported (golint)
    • Line 160: warning: exported function VMRun should have comment or be unexported (golint)
    • Line 178: warning: exported function VMGetContract should have comment or be unexported (golint)
    • Line 188: warning: exported function VMObjectExists should have comment or be unexported (golint)
    • Line 217: warning: exported function VMGetContractByID should have comment or be unexported (golint)
    • Line 269: warning: exported function FuncCallsDB should have comment or be unexported (golint)
    • Line 359: warning: exported function LoadSysFuncs should have comment or be unexported (golint)
    • Line 474: warning: exported function LoadVDEContracts should have comment or be unexported (golint)
    • Line 558: warning: exported function PrefixName should have comment or be unexported (golint)
    • Line 571: warning: exported method SmartContract.IsCustomTable should have comment or be unexported (golint)
    • Line 587: warning: comment on exported method SmartContract.AccessTablePerm should be of the form "AccessTablePerm ..." (golint)
    • Line 635: warning: exported method SmartContract.AccessTable should have comment or be unexported (golint)
    • go-genesis/packages/model/querycost/querycost.go
    • Line 1: warning: package comment should be of the form "Package querycost ..." (golint)
    • Line 28: warning: exported type QueryCosterType should have comment or be unexported (golint)
    • Line 31: warning: exported const ExplainQueryCosterType should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type QueryCoster should have comment or be unexported (golint)
    • Line 40: warning: exported type ExplainQueryCoster should have comment or be unexported (golint)
    • Line 43: warning: exported method ExplainQueryCoster.QueryCost should have comment or be unexported (golint)
    • Line 47: warning: exported type ExplainAnalyzeQueryCoster should have comment or be unexported (golint)
    • Line 50: warning: exported method ExplainAnalyzeQueryCoster.QueryCost should have comment or be unexported (golint)
    • Line 54: warning: exported function GetQueryCoster should have comment or be unexported (golint)
    • go-genesis/packages/api/contract.go
    • Line 1: warning: package comment should be of the form "Package api ..." (golint)
    • Line 291: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-genesis/packages/conf/conf.go
    • Line 1: warning: package comment should be of the form "Package conf ..." (golint)
    • Line 77: warning: comment on exported type LogConfig should be of the form "LogConfig ..." (with optional leading article) (golint)
    • go-genesis/packages/model/querycost/formula.go
    • Line 1: warning: package comment should be of the form "Package querycost ..." (golint)
    • Line 35: warning: exported const Select should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported const SelectCost should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: error var FromStatementMissingError should have name of the form ErrFoo (golint)
    • Line 60: warning: exported var FromStatementMissingError should have comment or be unexported (golint)
    • Line 61: warning: error var DeleteMinimumThreeFieldsError should have name of the form ErrFoo (golint)
    • Line 61: warning: exported var DeleteMinimumThreeFieldsError should have comment or be unexported (golint)
    • Line 62: warning: error var SetStatementMissingError should have name of the form ErrFoo (golint)
    • Line 62: warning: exported var SetStatementMissingError should have comment or be unexported (golint)
    • Line 63: warning: error var IntoStatementMissingError should have name of the form ErrFoo (golint)
    • Line 63: warning: exported var IntoStatementMissingError should have comment or be unexported (golint)
    • Line 64: warning: error var UnknownQueryTypeError should have name of the form ErrFoo (golint)
    • Line 64: warning: exported var UnknownQueryTypeError should have comment or be unexported (golint)
    • Line 76: warning: exported type TableRowCounter should have comment or be unexported (golint)
    • Line 80: warning: exported type DBCountQueryRowCounter should have comment or be unexported (golint)
    • Line 83: warning: exported method DBCountQueryRowCounter.RowCount should have comment or be unexported (golint)
    • Line 91: warning: exported type FormulaQueryCoster should have comment or be unexported (golint)
    • Line 95: warning: exported type QueryType should have comment or be unexported (golint)
    • Line 100: warning: exported type SelectQueryType should have comment or be unexported (golint)
    • Line 102: warning: exported method SelectQueryType.GetTableName should have comment or be unexported (golint)
    • Line 111: warning: exported method SelectQueryType.CalculateCost should have comment or be unexported (golint)
    • Line 115: warning: exported type UpdateQueryType should have comment or be unexported (golint)
    • Line 117: warning: exported method UpdateQueryType.GetTableName should have comment or be unexported (golint)
    • Line 126: warning: exported method UpdateQueryType.CalculateCost should have comment or be unexported (golint)
    • Line 130: warning: exported type InsertQueryType should have comment or be unexported (golint)
    • Line 132: warning: exported method InsertQueryType.GetTableName should have comment or be unexported (golint)
    • Line 149: warning: exported method InsertQueryType.CalculateCost should have comment or be unexported (golint)
    • Line 153: warning: exported type DeleteQueryType should have comment or be unexported (golint)
    • Line 155: warning: exported method DeleteQueryType.GetTableName should have comment or be unexported (golint)
    • Line 168: warning: exported method DeleteQueryType.CalculateCost should have comment or be unexported (golint)
    • Line 172: warning: exported method FormulaQueryCoster.QueryCost 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.


misspell97%

Misspell Finds commonly misspelled English words

    • go-genesis/packages/template/template_test.go
    • Line 263: warning: "satelite" is a misspelling of "satellite" (misspell)
    • Line 264: warning: "satelite" is a misspelling of "satellite" (misspell)
    • Line 265: warning: "satelite" is a misspelling of "satellite" (misspell)
    • Line 266: warning: "satelite" is a misspelling of "satellite" (misspell)
    • Line 267: warning: "satelite" is a misspelling of "satellite" (misspell)
    • Line 268: warning: "satelite" is a misspelling of "satellite" (misspell)