Preparing report...

Report for github.com/containous/yaegi

A+    Excellent!    Found 15 issues across 915 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!


golint99%

Golint is a linter for Go source code.


gocyclo98%

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.

    • yaegi/interp/run.go
    • Line 1031: warning: cyclomatic complexity 73 of function call() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 62 of function typeAssert() is high (> 15) (gocyclo)
    • Line 1311: warning: cyclomatic complexity 56 of function callBin() is high (> 15) (gocyclo)
    • Line 2744: warning: cyclomatic complexity 37 of function _case() is high (> 15) (gocyclo)
    • Line 583: warning: cyclomatic complexity 24 of function assign() is high (> 15) (gocyclo)
    • Line 2916: warning: cyclomatic complexity 24 of function _append() is high (> 15) (gocyclo)
    • Line 2224: warning: cyclomatic complexity 22 of function _return() is high (> 15) (gocyclo)
    • Line 2513: warning: cyclomatic complexity 21 of function doComposite() is high (> 15) (gocyclo)
    • Line 1671: warning: cyclomatic complexity 20 of function getIndexMap2() is high (> 15) (gocyclo)
    • Line 3619: warning: cyclomatic complexity 19 of function isNil() is high (> 15) (gocyclo)
    • Line 3472: warning: cyclomatic complexity 19 of function _select() is high (> 15) (gocyclo)
    • Line 3708: warning: cyclomatic complexity 19 of function isNotNil() is high (> 15) (gocyclo)
    • Line 884: warning: cyclomatic complexity 18 of function genFunctionWrapper() is high (> 15) (gocyclo)
    • Line 968: warning: cyclomatic complexity 18 of function genInterfaceWrapper() is high (> 15) (gocyclo)
    • Line 500: warning: cyclomatic complexity 16 of function convert() is high (> 15) (gocyclo)
    • yaegi/interp/cfg.go
    • Line 52: warning: cyclomatic complexity 491 of function (*Interpreter).cfg() is high (> 15) (gocyclo)
    • Line 2576: warning: cyclomatic complexity 19 of function compositeGenerator() is high (> 15) (gocyclo)
    • Line 1978: warning: cyclomatic complexity 16 of function compDefineX() is high (> 15) (gocyclo)
    • yaegi/interp/typecheck.go
    • Line 712: warning: cyclomatic complexity 66 of function (typecheck).builtin() is high (> 15) (gocyclo)
    • Line 1017: warning: cyclomatic complexity 27 of function (typecheck).convertUntyped() is high (> 15) (gocyclo)
    • Line 480: warning: cyclomatic complexity 27 of function (typecheck).sliceExpr() is high (> 15) (gocyclo)
    • Line 1172: warning: cyclomatic complexity 23 of function representableConst() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 16 of function (typecheck).typeAssertionExpr() is high (> 15) (gocyclo)
    • yaegi/interp/type.go
    • Line 143: warning: cyclomatic complexity 191 of function nodeType() is high (> 15) (gocyclo)
    • Line 1456: warning: cyclomatic complexity 39 of function (*itype).refType() is high (> 15) (gocyclo)
    • Line 1114: warning: cyclomatic complexity 25 of function (*itype).id() is high (> 15) (gocyclo)
    • Line 899: warning: cyclomatic complexity 19 of function isComplete() is high (> 15) (gocyclo)
    • Line 1046: warning: cyclomatic complexity 19 of function (*itype).methods() is high (> 15) (gocyclo)
    • Line 950: warning: cyclomatic complexity 18 of function (*itype).assignableTo() is high (> 15) (gocyclo)
    • yaegi/interp/op.go
    • Line 2621: warning: cyclomatic complexity 84 of function equal() is high (> 15) (gocyclo)
    • Line 4498: warning: cyclomatic complexity 84 of function notEqual() is high (> 15) (gocyclo)
    • Line 3517: warning: cyclomatic complexity 49 of function greaterEqual() is high (> 15) (gocyclo)
    • Line 3844: warning: cyclomatic complexity 49 of function lower() is high (> 15) (gocyclo)
    • Line 4171: warning: cyclomatic complexity 49 of function lowerEqual() is high (> 15) (gocyclo)
    • Line 3190: warning: cyclomatic complexity 49 of function greater() is high (> 15) (gocyclo)
    • Line 13: warning: cyclomatic complexity 26 of function add() is high (> 15) (gocyclo)
    • Line 1489: warning: cyclomatic complexity 23 of function addAssign() is high (> 15) (gocyclo)
    • Line 1207: warning: cyclomatic complexity 21 of function sub() is high (> 15) (gocyclo)
    • Line 430: warning: cyclomatic complexity 21 of function mul() is high (> 15) (gocyclo)
    • Line 710: warning: cyclomatic complexity 21 of function quo() is high (> 15) (gocyclo)
    • Line 1936: warning: cyclomatic complexity 19 of function quoAssign() is high (> 15) (gocyclo)
    • Line 2249: warning: cyclomatic complexity 19 of function subAssign() is high (> 15) (gocyclo)
    • Line 1757: warning: cyclomatic complexity 19 of function mulAssign() is high (> 15) (gocyclo)
    • yaegi/interp/interp.go
    • Line 503: warning: cyclomatic complexity 25 of function (*Interpreter).eval() is high (> 15) (gocyclo)
    • Line 445: warning: cyclomatic complexity 18 of function (*Interpreter).Symbols() is high (> 15) (gocyclo)
    • Line 830: warning: cyclomatic complexity 16 of function (*Interpreter).REPL() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!