Preparing report...

Report for github.com/risor-io/risor

(v0.10.0)

A+    Excellent!    Found 19 issues across 155 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • object/string.go
    • Line 45: warning: cyclomatic complexity 33 of function (*String).GetAttr() is high (> 15) (gocyclo)
    • builtins/builtins.go
    • Line 418: warning: cyclomatic complexity 22 of function All() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 22 of function Any() is high (> 15) (gocyclo)
    • lexer/lexer.go
    • Line 104: warning: cyclomatic complexity 59 of function (*Lexer).Next() is high (> 15) (gocyclo)
    • object/map.go
    • Line 57: warning: cyclomatic complexity 28 of function (*Map).GetAttr() is high (> 15) (gocyclo)
    • parser/parser.go
    • Line 589: warning: cyclomatic complexity 28 of function (*Parser).parseSwitch() is high (> 15) (gocyclo)
    • Line 1242: warning: cyclomatic complexity 25 of function (*Parser).parseMapOrSet() is high (> 15) (gocyclo)
    • object/typeconv.go
    • Line 190: warning: cyclomatic complexity 26 of function FromGoType() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 17 of function getTypeConverter() is high (> 15) (gocyclo)
    • vm/vm.go
    • Line 127: warning: cyclomatic complexity 93 of function (*VirtualMachine).eval() is high (> 15) (gocyclo)
    • compiler/compiler.go
    • Line 123: warning: cyclomatic complexity 67 of function (*Compiler).compile() is high (> 15) (gocyclo)
    • Line 1223: warning: cyclomatic complexity 25 of function (*Compiler).compileFor() is high (> 15) (gocyclo)
    • Line 1089: warning: cyclomatic complexity 20 of function (*Compiler).compileAssign() is high (> 15) (gocyclo)
    • Line 913: warning: cyclomatic complexity 20 of function (*Compiler).compileFunc() is high (> 15) (gocyclo)
    • Line 1443: warning: cyclomatic complexity 19 of function (*Compiler).compileInfix() is high (> 15) (gocyclo)
    • Line 453: warning: cyclomatic complexity 17 of function (*Compiler).compileSwitch() is high (> 15) (gocyclo)
    • object/file.go
    • Line 39: warning: cyclomatic complexity 39 of function (*File).GetAttr() is high (> 15) (gocyclo)
    • object/list.go
    • Line 53: warning: cyclomatic complexity 33 of function (*List).GetAttr() is high (> 15) (gocyclo)
    • repl/repl.go
    • Line 26: warning: cyclomatic complexity 32 of function Run() 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!