Preparing report...

Report for github.com/bobertlo/gmars

(v0.1.13)

A+    Excellent!    Found 11 issues across 33 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!


gocyclo72%

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.

    • lex.go
    • Line 95: warning: cyclomatic complexity 27 of function lexInput() is high (> 15) (gocyclo)
    • sim.go
    • Line 244: warning: cyclomatic complexity 44 of function (*reportSim).exec() is high (> 15) (gocyclo)
    • simops.go
    • Line 318: warning: cyclomatic complexity 22 of function (*reportSim).cmp() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 22 of function (*reportSim).sne() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 20 of function (*reportSim).div() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 20 of function (*reportSim).mod() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 16 of function (*reportSim).slt() is high (> 15) (gocyclo)
    • compile.go
    • Line 117: warning: cyclomatic complexity 19 of function (*compiler).assembleLine() is high (> 15) (gocyclo)
    • asm.go
    • Line 73: warning: cyclomatic complexity 18 of function getOpCode() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 17 of function (OpCode).String() is high (> 15) (gocyclo)
    • load.go
    • Line 265: warning: cyclomatic complexity 29 of function parseLoadFile88() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 24 of function parseLoadFile94() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 23 of function getOpModeAndValidate88() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 23 of function getOpMode94() 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!


misspell93%

Misspell Finds commonly misspelled English words

    • graph.go
    • Line 5: warning: "expresions" is a misspelling of "expression" (misspell)