Preparing report...

Report for github.com/domechn/expr

(v1.16.10)

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


gofmt98%

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!


gocyclo86%

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.

    • compiler/compiler.go
    • Line 790: warning: cyclomatic complexity 30 of function (*compiler).BuiltinNode() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 27 of function (*compiler).IntegerNode() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 26 of function (*compiler).compile() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 24 of function (*compiler).BinaryNode() is high (> 15) (gocyclo)
    • Line 730: warning: cyclomatic complexity 22 of function (*compiler).CallNode() is high (> 15) (gocyclo)
    • ast/visitor.go
    • Line 9: warning: cyclomatic complexity 29 of function Walk() is high (> 15) (gocyclo)
    • parser/parser.go
    • Line 591: warning: cyclomatic complexity 21 of function (*parser).parsePostfixExpression() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 20 of function (*parser).parseSecondary() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 19 of function (*parser).parseExpression() is high (> 15) (gocyclo)
    • vm/program.go
    • Line 85: warning: cyclomatic complexity 88 of function (*Program).DisassembleWriter() is high (> 15) (gocyclo)
    • checker/checker.go
    • Line 612: warning: cyclomatic complexity 88 of function (*checker).BuiltinNode() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 83 of function (*checker).BinaryNode() is high (> 15) (gocyclo)
    • Line 942: warning: cyclomatic complexity 26 of function (*checker).checkArguments() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 22 of function (*checker).visit() is high (> 15) (gocyclo)
    • Line 447: warning: cyclomatic complexity 22 of function (*checker).MemberNode() is high (> 15) (gocyclo)
    • internal/spew/format.go
    • Line 201: warning: cyclomatic complexity 45 of function (*formatState).format() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 22 of function (*formatState).formatPtr() is high (> 15) (gocyclo)
    • internal/difflib/difflib.go
    • Line 677: warning: cyclomatic complexity 24 of function WriteContextDiff() is high (> 15) (gocyclo)
    • Line 562: warning: cyclomatic complexity 23 of function WriteUnifiedDiff() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 22 of function (*SequenceMatcher).findLongestMatch() is high (> 15) (gocyclo)
    • vm/vm.go
    • Line 49: warning: cyclomatic complexity 137 of function (*VM).Run() is high (> 15) (gocyclo)
    • builtin/lib.go
    • Line 65: warning: cyclomatic complexity 25 of function Abs() is high (> 15) (gocyclo)
    • Line 22: warning: cyclomatic complexity 17 of function Type() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 16 of function Int() is high (> 15) (gocyclo)
    • internal/spew/dump.go
    • Line 251: warning: cyclomatic complexity 49 of function (*dumpState).dump() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function (*dumpState).dumpSlice() 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!