Preparing report...

Report for github.com/Humpheh/goboy

(v0.4.2)

A+    Excellent!    Found 6 issues across 33 files

Tweet

gofmt90%

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!


gocyclo90%

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.

    • pkg/gb/memory.go
    • Line 108: warning: cyclomatic complexity 36 of function (*Memory).WriteHighRam() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 20 of function (*Memory).ReadHighRam() is high (> 15) (gocyclo)
    • pkg/apu/apu.go
    • Line 98: warning: cyclomatic complexity 25 of function (*APU).Write() is high (> 15) (gocyclo)

golint93%

Golint is a linter for Go source code.

    • dialog/cocoa/dlg.go
    • Line 15: warning: exported type AlertParams should have comment or be unexported (golint)
    • Line 42: warning: exported function YesNoDlg should have comment or be unexported (golint)
    • Line 48: warning: exported function ErrorDlg should have comment or be unexported (golint)
    • Line 54: warning: exported const BUFSIZE should have comment or be unexported (golint)
    • Line 56: warning: exported function FileDlg should have comment or be unexported (golint)
    • dialog/dlgs.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 20: warning: comment on exported var Cancelled should be of the form "Cancelled ..." (golint)
    • Line 21: warning: error var Cancelled should have name of the form ErrFoo (golint)
    • Line 23: warning: exported type Dlg should have comment or be unexported (golint)
    • Line 27: warning: exported type MsgBuilder should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function Message should be of the form "Message ..." (golint)
    • Line 37: warning: comment on exported method MsgBuilder.Title should be of the form "Title ..." (golint)
    • Line 43: warning: comment on exported method MsgBuilder.YesNo should be of the form "YesNo ..." (golint)
    • Line 54: warning: comment on exported type FileFilter should be of the form "FileFilter ..." (with optional leading article) (golint)
    • Line 60: warning: exported type FileBuilder should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function File should be of the form "File ..." (golint)
    • Line 71: warning: comment on exported method FileBuilder.Title should be of the form "Title ..." (golint)
    • Line 77: warning: comment on exported method FileBuilder.Filter should be of the form "Filter ..." (golint)
    • Line 91: warning: comment on exported method FileBuilder.SetStartDir should be of the form "SetStartDir ..." (golint)
    • Line 97: warning: comment on exported method FileBuilder.Load should be of the form "Load ..." (golint)
    • Line 104: warning: comment on exported method FileBuilder.Save should be of the form "Save ..." (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!