Preparing report...

Report for github.com/cavaliercoder/go-m68k

A+    Excellent!    Found 8 issues across 42 files

Tweet

gofmt97%

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


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!


gocyclo95%

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.

    • go-m68k/cpu.go
    • Line 264: warning: cyclomatic complexity 18 of function (*Processor).readByte() is high (> 15) (gocyclo)
    • Line 349: warning: cyclomatic complexity 16 of function (*Processor).readWord() is high (> 15) (gocyclo)
    • Line 426: warning: cyclomatic complexity 16 of function (*Processor).readLong() is high (> 15) (gocyclo)
    • Line 647: warning: cyclomatic complexity 16 of function (*Processor).writeByte() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • go-m68k/cpu.go
    • Line 13: warning: exported const SizeByte should have comment (or a comment on this block) or be unexported (golint)
    • Line 103: warning: exported type TrapHandler should have comment or be unexported (golint)
    • Line 106: warning: exported type TrapHandlerFunc should have comment or be unexported (golint)
    • Line 108: warning: exported method TrapHandlerFunc.HandleTrap should have comment or be unexported (golint)
    • Line 112: warning: exported method Processor.RegisterTrapHandler should have comment or be unexported (golint)
    • go-m68k/int.go
    • Line 45: warning: exported method Int.Size should have comment or be unexported (golint)
    • Line 49: warning: exported method Int.Status should have comment or be unexported (golint)
    • go-m68k/m68ktest/m68ktest.go
    • Line 84: warning: exported function AssertDataRegister should have comment or be unexported (golint)
    • Line 90: warning: exported function AssertAddressRegister should have comment or be unexported (golint)
    • Line 96: warning: exported function AssertStatusRegister should have comment or be unexported (golint)
    • Line 102: warning: exported function AssertLong should have comment or be unexported (golint)

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!


misspell95%

Misspell Finds commonly misspelled English words

    • go-m68k/dump/dump.go
    • Line 16: warning: "hexidecimal" is a misspelling of "hexadecimal" (misspell)
    • Line 34: warning: "hexidecimal" is a misspelling of "hexadecimal" (misspell)