Preparing report...

Report for github.com/kaishuu0123/chibisnes

(v0.0.0-20220823055740-c67bd597cf9f)

A    Great!    Found 7 issues across 20 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!


gocyclo70%

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.

    • chibisnes/console.go
    • Line 410: warning: cyclomatic complexity 37 of function (*Console).runCycle() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 26 of function (*Console).WriteReg() is high (> 15) (gocyclo)
    • Line 691: warning: cyclomatic complexity 21 of function (*Console).calculateScore() is high (> 15) (gocyclo)
    • Line 530: warning: cyclomatic complexity 18 of function (*Console).LoadROM() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 18 of function (*Console).ReadReg() is high (> 15) (gocyclo)
    • chibisnes/dsp.go
    • Line 465: warning: cyclomatic complexity 32 of function (*DSP).Write() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 24 of function (*DSP).cycleChannel() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 20 of function (*DSP).handleGain() is high (> 15) (gocyclo)
    • chibisnes/cpu_instructions.go
    • Line 3: warning: cyclomatic complexity 293 of function (*CPU).doOpcode() is high (> 15) (gocyclo)
    • Line 1475: warning: cyclomatic complexity 22 of function (*CPU).sbc() is high (> 15) (gocyclo)
    • Line 1409: warning: cyclomatic complexity 18 of function (*CPU).adc() is high (> 15) (gocyclo)
    • chibisnes/ppu.go
    • Line 976: warning: cyclomatic complexity 55 of function (*PPU).Write() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 37 of function (*PPU).handlePixel() is high (> 15) (gocyclo)
    • Line 338: warning: cyclomatic complexity 33 of function (*PPU).getPixel() is high (> 15) (gocyclo)
    • Line 852: warning: cyclomatic complexity 27 of function (*PPU).Read() is high (> 15) (gocyclo)
    • Line 725: warning: cyclomatic complexity 23 of function (*PPU).evaluateSprites() is high (> 15) (gocyclo)
    • Line 684: warning: cyclomatic complexity 21 of function (*PPU).getWindowState() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 21 of function (*PPU).getPixelForBGLayer() is high (> 15) (gocyclo)

ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • chibisnes/ppu.go
    • Line 356: warning: ineffectual assignment to layerActive (ineffassign)
    • Line 431: warning: ineffectual assignment to column (ineffassign)
    • Line 872: warning: ineffectual assignment to ret (ineffassign)
    • Line 916: warning: ineffectual assignment to ret (ineffassign)
    • Line 927: warning: ineffectual assignment to val (ineffassign)
    • Line 937: warning: ineffectual assignment to val (ineffassign)
    • chibisnes/cpu_instructions.go
    • Line 1412: warning: ineffectual assignment to result (ineffassign)
    • Line 1439: warning: ineffectual assignment to result (ineffassign)
    • Line 1478: warning: ineffectual assignment to result (ineffassign)
    • Line 1509: warning: ineffectual assignment to result (ineffassign)
    • Line 1558: warning: ineffectual assignment to result (ineffassign)
    • Line 1582: warning: ineffectual assignment to result (ineffassign)
    • Line 1605: warning: ineffectual assignment to result (ineffassign)
    • Line 1736: warning: ineffectual assignment to carry (ineffassign)
    • Line 1737: warning: ineffectual assignment to result (ineffassign)
    • Line 1767: warning: ineffectual assignment to result (ineffassign)
    • Line 1790: warning: ineffectual assignment to result (ineffassign)
    • Line 1815: warning: ineffectual assignment to result (ineffassign)
    • Line 1838: warning: ineffectual assignment to result (ineffassign)
    • Line 1851: warning: ineffectual assignment to result (ineffassign)

license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!