Preparing report...

Report for github.com/capillariesio/capillaries

(v1.1.17)

A+    Excellent!    Found 22 issues across 133 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo83%

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.

    • test/code/parquet/capiparquet.go
    • Line 40: warning: cyclomatic complexity 56 of function diff() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 34 of function sortFile() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 24 of function cat() is high (> 15) (gocyclo)
    • Line 477: warning: cyclomatic complexity 24 of function main() is high (> 15) (gocyclo)
    • pkg/eval/eval_ctx.go
    • Line 460: warning: cyclomatic complexity 27 of function (*EvalCtx).EvalFunc() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 24 of function (*EvalCtx).Eval() is high (> 15) (gocyclo)
    • Line 241: warning: cyclomatic complexity 18 of function (*EvalCtx).EvalBinaryTimeToBool() is high (> 15) (gocyclo)
    • Line 215: warning: cyclomatic complexity 16 of function (*EvalCtx).EvalBinaryDecimal2ToBool() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 16 of function (*EvalCtx).EvalBinaryFloat64ToBool() is high (> 15) (gocyclo)
    • Line 597: warning: cyclomatic complexity 16 of function (*EvalCtx).evalBinaryExp() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 16 of function (*EvalCtx).EvalBinaryStringToBool() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function (*EvalCtx).EvalBinaryIntToBool() is high (> 15) (gocyclo)
    • pkg/sc/index_def.go
    • Line 73: warning: cyclomatic complexity 22 of function (*IdxDef).parseComponentExpr() is high (> 15) (gocyclo)
    • pkg/eval/agg.go
    • Line 292: warning: cyclomatic complexity 21 of function (*EvalCtx).CallAggMax() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 21 of function (*EvalCtx).CallAggMin() is high (> 15) (gocyclo)
    • pkg/proc/file_read_parquet.go
    • Line 82: warning: cyclomatic complexity 21 of function readParquet() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 19 of function readParquetRowToValuesMap() is high (> 15) (gocyclo)
    • pkg/wf/message_handler.go
    • Line 361: warning: cyclomatic complexity 25 of function ProcessDataBatchMsg() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 18 of function checkDependencyNodesReady() is high (> 15) (gocyclo)
    • test/code/lookup/generate_data.go
    • Line 530: warning: cyclomatic complexity 33 of function main() is high (> 15) (gocyclo)
    • Line 95: warning: cyclomatic complexity 30 of function shuffleAndSaveInOrders() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 29 of function shuffleAndSaveInOrderItems() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 24 of function sortAndSaveGroup() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 20 of function sortAndSaveNoGroup() is high (> 15) (gocyclo)
    • pkg/api/run.go
    • Line 36: warning: cyclomatic complexity 23 of function StartRun() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 17 of function RunNode() is high (> 15) (gocyclo)
    • pkg/proc/proc_table_creator.go
    • Line 679: warning: cyclomatic complexity 42 of function RunCreateTableRelForBatch() is high (> 15) (gocyclo)
    • Line 71: warning: cyclomatic complexity 20 of function RunReadFileForBatch() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 17 of function RunCreateTableForBatch() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 16 of function RunCreateTableForCustomProcessorForBatch() is high (> 15) (gocyclo)
    • test/code/portfolio/bigtest/generate_bigtest_data.go
    • Line 155: warning: cyclomatic complexity 25 of function generateTxns() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 23 of function generateHoldings() is high (> 15) (gocyclo)
    • Line 270: warning: cyclomatic complexity 17 of function generateOutTotals() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 17 of function generateOutBySector() is high (> 15) (gocyclo)
    • pkg/sc/key.go
    • Line 70: warning: cyclomatic complexity 23 of function BuildKey() is high (> 15) (gocyclo)
    • pkg/proc/table_inserter.go
    • Line 385: warning: cyclomatic complexity 19 of function (*TableInserter).insertIdxRecord() is high (> 15) (gocyclo)
    • Line 255: warning: cyclomatic complexity 16 of function (*TableInserter).insertDataRecord() is high (> 15) (gocyclo)
    • pkg/sc/script_def.go
    • Line 198: warning: cyclomatic complexity 17 of function (*ScriptDef).checkFieldUsageInCreator() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 17 of function (*ScriptDef).Deserialize() is high (> 15) (gocyclo)
    • pkg/sc/script_node_def.go
    • Line 283: warning: cyclomatic complexity 17 of function (*ScriptNodeDef).evalCreatorAndLookupExpressionsAndCheckType() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!