Preparing report...

Report for github.com/antonmedv/expr

(v1.14.3)

A+    Excellent!    Found 13 issues across 73 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!


gocyclo82%

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.

    • vm/vm.go
    • Line 57: warning: cyclomatic complexity 103 of function (*VM).Run() is high (> 15) (gocyclo)
    • vm/program.go
    • Line 37: warning: cyclomatic complexity 73 of function (*Program).Opcodes() is high (> 15) (gocyclo)
    • ast/visitor.go
    • Line 9: warning: cyclomatic complexity 27 of function Walk() is high (> 15) (gocyclo)
    • parser/parser.go
    • Line 456: warning: cyclomatic complexity 18 of function (*parser).parsePostfixExpression() is high (> 15) (gocyclo)
    • checker/checker.go
    • Line 215: warning: cyclomatic complexity 96 of function (*visitor).BinaryNode() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 38 of function (*visitor).BuiltinNode() is high (> 15) (gocyclo)
    • Line 418: warning: cyclomatic complexity 23 of function (*visitor).MemberNode() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 21 of function (*visitor).visit() is high (> 15) (gocyclo)
    • Line 758: warning: cyclomatic complexity 19 of function (*visitor).checkArguments() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 17 of function (*visitor).CallNode() is high (> 15) (gocyclo)
    • docgen/docgen.go
    • Line 91: warning: cyclomatic complexity 30 of function (*Context).use() is high (> 15) (gocyclo)
    • compiler/compiler.go
    • Line 327: warning: cyclomatic complexity 27 of function (*compiler).BinaryNode() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 21 of function (*compiler).compile() is high (> 15) (gocyclo)
    • builtin/func.go
    • Line 63: warning: cyclomatic complexity 25 of function Abs() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 17 of function Type() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!