Preparing report...

Report for github.com/kaishuu0123/chibigb

(v0.0.0-20220904094427-53e25169a14a)

A+    Excellent!    Found 6 issues across 22 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.

    • chibigb/memory.go
    • Line 261: warning: cyclomatic complexity 47 of function (*Memory).IORegistersPerformWrite() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 23 of function (*Memory).IORegistersPerformRead() is high (> 15) (gocyclo)
    • chibigb/ppu.go
    • Line 71: warning: cyclomatic complexity 37 of function (*PPU).Step() is high (> 15) (gocyclo)
    • Line 465: warning: cyclomatic complexity 28 of function (*PPU).RenderSprites() is high (> 15) (gocyclo)
    • chibigb/cpu.go
    • Line 81: warning: cyclomatic complexity 32 of function (*CPU).Step() is high (> 15) (gocyclo)
    • chibigb/apu.go
    • Line 91: warning: cyclomatic complexity 29 of function (*APU).Read() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 28 of function (*APU).Write() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • chibigb/ppu.go
    • Line 310: warning: ineffectual assignment to mapTile (ineffassign)
    • Line 320: warning: ineffectual assignment to byte1 (ineffassign)
    • Line 321: warning: ineffectual assignment to byte2 (ineffassign)
    • Line 415: warning: ineffectual assignment to tile (ineffassign)
    • Line 425: warning: ineffectual assignment to byte1 (ineffassign)
    • Line 426: warning: ineffectual assignment to byte2 (ineffassign)
    • Line 539: warning: ineffectual assignment to byte1 (ineffassign)
    • Line 540: warning: ineffectual assignment to byte2 (ineffassign)
    • Line 541: warning: ineffectual assignment to pixelY2 (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words