Preparing report...

Report for github.com/ozanh/ugo

(v0.5.0)

A+    Excellent!    Found 17 issues across 76 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!


gocyclo77%

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.

    • objects.go
    • Line 373: warning: cyclomatic complexity 41 of function (Bool).BinaryOp() is high (> 15) (gocyclo)
    • Line 711: warning: cyclomatic complexity 18 of function (Bytes).BinaryOp() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 17 of function (String).BinaryOp() is high (> 15) (gocyclo)
    • numeric.go
    • Line 489: warning: cyclomatic complexity 39 of function (Char).BinaryOp() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 32 of function (Uint).BinaryOp() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 32 of function (Int).BinaryOp() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 18 of function (Float).BinaryOp() is high (> 15) (gocyclo)
    • ugo.go
    • Line 124: warning: cyclomatic complexity 36 of function ToObjectAlt() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 32 of function ToObject() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 17 of function ToInterface() is high (> 15) (gocyclo)
    • stdlib/json/encode.go
    • Line 483: warning: cyclomatic complexity 18 of function (*encodeState).string() is high (> 15) (gocyclo)
    • Line 555: warning: cyclomatic complexity 18 of function (*encodeState).stringBytes() is high (> 15) (gocyclo)
    • compiler_nodes.go
    • Line 1092: warning: cyclomatic complexity 16 of function (*Compiler).compileImportExpr() is high (> 15) (gocyclo)
    • vm.go
    • Line 185: warning: cyclomatic complexity 115 of function (*VM).loop() is high (> 15) (gocyclo)
    • Line 1322: warning: cyclomatic complexity 20 of function (*VM).xOpSliceIndex() is high (> 15) (gocyclo)
    • Line 1247: warning: cyclomatic complexity 19 of function (*VM).xOpUnary() is high (> 15) (gocyclo)
    • Line 1041: warning: cyclomatic complexity 19 of function (*VM).xOpCallCompiled() is high (> 15) (gocyclo)
    • optimizer.go
    • Line 546: warning: cyclomatic complexity 110 of function (*SimpleOptimizer).transform() is high (> 15) (gocyclo)
    • compiler.go
    • Line 319: warning: cyclomatic complexity 53 of function (*Compiler).Compile() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 16 of function MakeInstruction() is high (> 15) (gocyclo)
    • parser/parser_test.go
    • Line 2564: warning: cyclomatic complexity 25 of function equalStmt() is high (> 15) (gocyclo)
    • Line 2694: warning: cyclomatic complexity 22 of function equalExpr() is high (> 15) (gocyclo)
    • parser/scanner.go
    • Line 89: warning: cyclomatic complexity 48 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 21 of function (*Scanner).scanNumber() is high (> 15) (gocyclo)
    • encoder/encoder.go
    • Line 277: warning: cyclomatic complexity 40 of function DecodeObject() is high (> 15) (gocyclo)
    • Line 978: warning: cyclomatic complexity 20 of function (*CompiledFunction).UnmarshalBinary() is high (> 15) (gocyclo)
    • parser/parser.go
    • Line 420: warning: cyclomatic complexity 16 of function (*Parser).parseOperand() 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!