Preparing report...

Report for github.com/d5/tengo

(v1.24.8)

A+    Excellent!    Found 28 issues across 252 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!


gofmt97%

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!


gocyclo91%

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.

    • runtime/vm.go
    • Line 102: warning: cyclomatic complexity 163 of function (*VM).run() is high (> 15) (gocyclo)
    • compiler/scanner/scanner.go
    • Line 67: warning: cyclomatic complexity 48 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 19 of function (*Scanner).scanNumber() is high (> 15) (gocyclo)
    • objects/time.go
    • Line 25: warning: cyclomatic complexity 18 of function (*Time).BinaryOp() is high (> 15) (gocyclo)
    • objects/int.go
    • Line 25: warning: cyclomatic complexity 56 of function (*Int).BinaryOp() is high (> 15) (gocyclo)
    • objects/float.go
    • Line 26: warning: cyclomatic complexity 35 of function (*Float).BinaryOp() is high (> 15) (gocyclo)
    • objects/char.go
    • Line 23: warning: cyclomatic complexity 27 of function (*Char).BinaryOp() is high (> 15) (gocyclo)
    • objects/formatter.go
    • Line 1017: warning: cyclomatic complexity 45 of function (*pp).doFormat() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 33 of function (*formatter).fmtInteger() is high (> 15) (gocyclo)
    • Line 513: warning: cyclomatic complexity 29 of function (*formatter).fmtFloat() is high (> 15) (gocyclo)
    • Line 392: warning: cyclomatic complexity 21 of function (*formatter).fmtSbx() is high (> 15) (gocyclo)
    • objects/conversion.go
    • Line 211: warning: cyclomatic complexity 25 of function FromInterface() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 19 of function ToInterface() 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!