Preparing report...

Report for github.com/lf-edge/ekuiper

(v0.0.0-20230110023555-a8b7908025c8)

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


gofmt99%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo85%

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.

    • internal/topo/sink/edgex_sink.go
    • Line 202: warning: cyclomatic complexity 57 of function getValueType() is high (> 15) (gocyclo)
    • Line 377: warning: cyclomatic complexity 30 of function getValueByType() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 20 of function (*EdgexMsgBusSink).produceEvents() is high (> 15) (gocyclo)
    • Line 618: warning: cyclomatic complexity 18 of function (*meta).readingMeta() is high (> 15) (gocyclo)
    • internal/xsql/lexical.go
    • Line 151: warning: cyclomatic complexity 44 of function (*Scanner).ScanIdent() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 38 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • internal/xsql/valuer.go
    • Line 712: warning: cyclomatic complexity 167 of function (*ValuerEval).simpleDataEval() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 62 of function (*ValuerEval).Eval() is high (> 15) (gocyclo)
    • Line 461: warning: cyclomatic complexity 25 of function (*ValuerEval).evalBinaryExpr() is high (> 15) (gocyclo)
    • pkg/cast/cast.go
    • Line 554: warning: cyclomatic complexity 32 of function ToUint8() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 32 of function ToUint16() is high (> 15) (gocyclo)
    • Line 700: warning: cyclomatic complexity 32 of function ToUint32() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 32 of function ToUint64() is high (> 15) (gocyclo)
    • Line 353: warning: cyclomatic complexity 29 of function ToFloat64() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 29 of function ToFloat32() is high (> 15) (gocyclo)
    • Line 145: warning: cyclomatic complexity 25 of function ToInt8() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 25 of function ToInt() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 25 of function ToInt64() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 25 of function ToInt16() is high (> 15) (gocyclo)
    • Line 249: warning: cyclomatic complexity 25 of function ToInt32() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 21 of function ToString() is high (> 15) (gocyclo)
    • internal/plugin/native/manager.go
    • Line 458: warning: cyclomatic complexity 25 of function (*Manager).install() is high (> 15) (gocyclo)
    • Line 256: warning: cyclomatic complexity 21 of function (*Manager).Register() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 17 of function (*Manager).Delete() is high (> 15) (gocyclo)
    • internal/xsql/parser.go
    • Line 485: warning: cyclomatic complexity 28 of function (*Parser).ParseExpr() is high (> 15) (gocyclo)
    • Line 606: warning: cyclomatic complexity 24 of function (*Parser).parseUnaryExpr() is high (> 15) (gocyclo)
    • Line 1412: warning: cyclomatic complexity 22 of function (*Parser).parseStreamOptions() is high (> 15) (gocyclo)
    • Line 1517: warning: cyclomatic complexity 17 of function (*Parser).parseOver() is high (> 15) (gocyclo)
    • Line 948: warning: cyclomatic complexity 17 of function validateWindows() is high (> 15) (gocyclo)
    • Line 815: warning: cyclomatic complexity 17 of function (*Parser).parseCall() is high (> 15) (gocyclo)
    • Line 884: warning: cyclomatic complexity 16 of function (*Parser).parseCaseExpr() 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!