Preparing report...

Report for github.com/whtiehack/wingui

A    Great!    Found 18 issues across 33 files

Tweet

gofmt87%

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!


gocyclo96%

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.

    • wingui/dialog.go
    • Line 96: warning: cyclomatic complexity 19 of function (*Dialog).dialogWndProc() is high (> 15) (gocyclo)

golint54%

Golint is a linter for Go source code.

    • wingui/image.go
    • Line 43: warning: comment on exported function BindNewImage should be of the form "BindNewImage ..." (golint)
    • wingui/tabcontrol.go
    • Line 28: warning: comment on exported method TabControl.InsertItemText should be of the form "InsertItemText ..." (golint)
    • wingui/examples/wowjump/utils.go
    • Line 118: warning: exported type Statistics should have comment or be unexported (golint)
    • Line 127: warning: exported function NewStatistics should have comment or be unexported (golint)
    • Line 150: warning: exported method Statistics.Stat should have comment or be unexported (golint)
    • wingui/button.go
    • Line 13: warning: comment on exported type Button should be of the form "Button ..." (with optional leading article) (golint)
    • Line 20: warning: comment on exported method Button.WndProc should be of the form "WndProc ..." (golint)
    • Line 39: warning: comment on exported method Button.GetNote should be of the form "GetNote ..." (golint)
    • Line 53: warning: comment on exported method Button.SetNote should be of the form "SetNote ..." (golint)
    • Line 58: warning: comment on exported method Button.SetDropDownState should be of the form "SetDropDownState ..." (golint)
    • Line 68: warning: comment on exported method Button.SetShield should be of the form "SetShield ..." (golint)
    • Line 78: warning: comment on exported method Button.Click should be of the form "Click ..." (golint)
    • Line 84: warning: comment on exported method Button.GetCheck should be of the form "GetCheck ..." (golint)
    • Line 99: warning: comment on exported method Button.GetState should be of the form "GetState ..." (golint)
    • Line 129: warning: comment on exported method Button.SetCheck should be of the form "SetCheck ..." (golint)
    • Line 146: warning: comment on exported method Button.SetDontClick should be of the form "SetDontClick ..." (golint)
    • Line 156: warning: comment on exported method Button.SetImage should be of the form "SetImage ..." (golint)
    • Line 168: warning: comment on exported method Button.GetImage should be of the form "GetImage ..." (golint)
    • Line 178: warning: comment on exported method Button.SetState should be of the form "SetState ..." (golint)
    • Line 194: warning: comment on exported method Button.SetStyle should be of the form "SetStyle ..." (golint)
    • Line 340: warning: comment on exported function NewButton should be of the form "NewButton ..." (golint)
    • Line 345: warning: comment on exported function BindNewButton should be of the form "BindNewButton ..." (golint)
    • Line 352: warning: exported function BindNewButtons should have comment or be unexported (golint)
    • wingui/listbox.go
    • Line 101: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • wingui/utils.go
    • Line 9: warning: exported function RGB should have comment or be unexported (golint)
    • Line 15: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • wingui/bitmap.go
    • Line 37: warning: receiver name bmp should be consistent with previous receiver name b for Bitmap (golint)
    • Line 56: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 62: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 68: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 74: warning: exported function NewBitmapFromWindow should have comment or be unexported (golint)
    • wingui/trackbar.go
    • Line 13: warning: comment on exported type TrackBar should be of the form "TrackBar ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported method TrackBar.GetBuddy should be of the form "GetBuddy ..." (golint)
    • Line 56: warning: comment on exported method TrackBar.SetBuddy should be of the form "SetBuddy ..." (golint)
    • Line 76: warning: comment on exported method TrackBar.GetChannelRect should be of the form "GetChannelRect ..." (golint)
    • Line 86: warning: comment on exported method TrackBar.GetLineSize should be of the form "GetLineSize ..." (golint)
    • Line 97: warning: comment on exported method TrackBar.SetLineSize should be of the form "SetLineSize ..." (golint)
    • Line 112: warning: comment on exported method TrackBar.GetNumTics should be of the form "GetNumTics ..." (golint)
    • Line 123: warning: comment on exported method TrackBar.GetTic should be of the form "GetTic ..." (golint)
    • Line 132: warning: comment on exported method TrackBar.SetTic should be of the form "SetTic ..." (golint)
    • Line 140: warning: comment on exported method TrackBar.SetTicFreq should be of the form "SetTicFreq ..." (golint)
    • Line 150: warning: comment on exported method TrackBar.GetTicPos should be of the form "GetTicPos ..." (golint)
    • Line 173: warning: comment on exported method TrackBar.GetPageSize should be of the form "GetPageSize ..." (golint)
    • Line 185: warning: comment on exported method TrackBar.SetPageSize should be of the form "SetPageSize ..." (golint)
    • Line 197: warning: comment on exported method TrackBar.GetPos should be of the form "GetPos ..." (golint)
    • Line 204: warning: comment on exported method TrackBar.SetPos should be of the form "SetPos ..." (golint)
    • Line 217: warning: comment on exported method TrackBar.SetPosNotify should be of the form "SetPosNotify ..." (golint)
    • Line 231: warning: comment on exported method TrackBar.GetRangeMax should be of the form "GetRangeMax ..." (golint)
    • Line 238: warning: comment on exported method TrackBar.GetRangeMin should be of the form "GetRangeMin ..." (golint)
    • Line 245: warning: comment on exported method TrackBar.SetRange should be of the form "SetRange ..." (golint)
    • Line 262: warning: comment on exported method TrackBar.SetRangeMax should be of the form "SetRangeMax ..." (golint)
    • Line 276: warning: comment on exported method TrackBar.SetRangeMin should be of the form "SetRangeMin ..." (golint)
    • Line 290: warning: comment on exported method TrackBar.GetSelEnd should be of the form "GetSelEnd ..." (golint)
    • Line 297: warning: comment on exported method TrackBar.GetSelStart should be of the form "GetSelStart ..." (golint)
    • Line 304: warning: comment on exported method TrackBar.SetSel should be of the form "SetSel ..." (golint)
    • Line 313: warning: comment on exported method TrackBar.SetSelEnd should be of the form "SetSelEnd ..." (golint)
    • Line 324: warning: comment on exported method TrackBar.SetSelStart should be of the form "SetSelStart ..." (golint)
    • Line 335: warning: comment on exported method TrackBar.GetThumbLength should be of the form "GetThumbLength ..." (golint)
    • Line 341: warning: comment on exported method TrackBar.SetThumbLength should be of the form "SetThumbLength ..." (golint)
    • Line 348: warning: comment on exported method TrackBar.GetThumbRect should be of the form "GetThumbRect ..." (golint)
    • Line 355: warning: comment on exported method TrackBar.GetTooltips should be of the form "GetTooltips ..." (golint)
    • Line 362: warning: comment on exported method TrackBar.SetTooltips should be of the form "SetTooltips ..." (golint)
    • Line 371: warning: comment on exported method TrackBar.SetTipSide should be of the form "SetTipSide ..." (golint)
    • Line 389: warning: comment on exported method TrackBar.SetUnicodeFormat should be of the form "SetUnicodeFormat ..." (golint)
    • wingui/winapi/commctrl.go
    • Line 7630: warning: exported var TD_WARNING_ICON should have comment or be unexported (golint)
    • Line 7631: warning: exported var TD_ERROR_ICON should have comment or be unexported (golint)
    • Line 7632: warning: exported var TD_INFORMATION_ICON should have comment or be unexported (golint)
    • Line 7633: warning: exported var TD_SHIELD_ICON should have comment or be unexported (golint)
    • Line 7636: warning: exported type PBRANGE should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words