Preparing report...

Report for github.com/andlabs/ui

C    Needs some work    Found 37 issues across 43 files

Tweet

gofmt18%

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!


gocyclo97%

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.


golint86%

Golint is a linter for Go source code.

    • ui/control.go
    • Line 90: warning: exported method ControlBase.LibuiControl should have comment or be unexported (golint)
    • Line 94: warning: exported method ControlBase.Destroy should have comment or be unexported (golint)
    • Line 99: warning: exported method ControlBase.Handle should have comment or be unexported (golint)
    • Line 103: warning: exported method ControlBase.Visible should have comment or be unexported (golint)
    • Line 107: warning: exported method ControlBase.Show should have comment or be unexported (golint)
    • Line 111: warning: exported method ControlBase.Hide should have comment or be unexported (golint)
    • Line 115: warning: exported method ControlBase.Enabled should have comment or be unexported (golint)
    • Line 119: warning: exported method ControlBase.Enable should have comment or be unexported (golint)
    • Line 123: warning: exported method ControlBase.Disable should have comment or be unexported (golint)
    • ui/draw.go
    • Line 43: warning: comment on exported type DrawFillMode should be of the form "DrawFillMode ..." (with optional leading article) (golint)
    • Line 48: warning: exported const DrawFillModeWinding should have comment (or a comment on this block) or be unexported (golint)
    • Line 165: warning: exported const DrawBrushTypeSolid should have comment (or a comment on this block) or be unexported (golint)
    • Line 171: warning: comment on exported type DrawLineCap should be of the form "DrawLineCap ..." (with optional leading article) (golint)
    • Line 177: warning: exported const DrawLineCapFlat should have comment (or a comment on this block) or be unexported (golint)
    • Line 182: warning: comment on exported type DrawLineJoin should be of the form "DrawLineJoin ..." (with optional leading article) (golint)
    • Line 187: warning: exported const DrawLineJoinMiter should have comment (or a comment on this block) or be unexported (golint)
    • Line 192: warning: comment on exported const DrawDefaultMiterLimit should be of the form "DrawDefaultMiterLimit ..." (golint)
    • Line 195: warning: comment on exported type DrawBrush should be of the form "DrawBrush ..." (with optional leading article) (golint)
    • Line 216: warning: comment on exported type DrawGradientStop should be of the form "DrawGradientStop ..." (with optional leading article) (golint)
    • Line 265: warning: comment on exported type DrawStrokeParams should be of the form "DrawStrokeParams ..." (with optional leading article) (golint)
    • Line 300: warning: comment on exported method DrawContext.Stroke should be of the form "Stroke ..." (golint)
    • Line 309: warning: comment on exported method DrawContext.Fill should be of the form "Fill ..." (golint)
    • Line 316: warning: comment on exported type DrawMatrix should be of the form "DrawMatrix ..." (with optional leading article) (golint)
    • Line 327: warning: comment on exported function DrawNewMatrix should be of the form "DrawNewMatrix ..." (golint)
    • Line 334: warning: comment on exported method DrawMatrix.SetIdentity should be of the form "SetIdentity ..." (golint)
    • Line 365: warning: comment on exported method DrawMatrix.Translate should be of the form "Translate ..." (golint)
    • Line 372: warning: comment on exported method DrawMatrix.Scale should be of the form "Scale ..." (golint)
    • Line 381: warning: comment on exported method DrawMatrix.Rotate should be of the form "Rotate ..." (golint)
    • Line 388: warning: comment on exported method DrawMatrix.Skew should be of the form "Skew ..." (golint)
    • Line 397: warning: comment on exported method DrawMatrix.Multiply should be of the form "Multiply ..." (golint)
    • Line 406: warning: comment on exported method DrawMatrix.Invertible should be of the form "Invertible ..." (golint)
    • Line 414: warning: comment on exported method DrawMatrix.Invert should be of the form "Invert ..." (golint)
    • Line 424: warning: comment on exported method DrawMatrix.TransformPoint should be of the form "TransformPoint ..." (golint)
    • Line 429: warning: comment on exported method DrawMatrix.TransformSize should be of the form "TransformSize ..." (golint)
    • Line 434: warning: comment on exported method DrawContext.Transform should be of the form "Transform ..." (golint)
    • Line 441: warning: comment on exported method DrawContext.Clip should be of the form "Clip ..." (golint)
    • Line 446: warning: comment on exported method DrawContext.Save should be of the form "Save ..." (golint)
    • Line 451: warning: comment on exported method DrawContext.Restore should be of the form "Restore ..." (golint)
    • ui/drawtext.go
    • Line 66: warning: exported const TextWeightMinimum should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported const TextItalicNormal should have comment (or a comment on this block) or be unexported (golint)
    • Line 113: warning: exported const TextStretchUltraCondensed should have comment (or a comment on this block) or be unexported (golint)
    • Line 158: warning: exported const UnderlineNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 184: warning: exported const UnderlineColorSpelling should have comment (or a comment on this block) or be unexported (golint)
    • Line 471: warning: exported const DrawTextAlignLeft should have comment (or a comment on this block) or be unexported (golint)
    • Line 487: warning: comment on exported function DrawNewTextLayout should be of the form "DrawNewTextLayout ..." (golint)
    • ui/grid.go
    • Line 37: warning: exported const AlignFill should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported const Leading should have comment (or a comment on this block) or be unexported (golint)
    • ui/stddialogs.go
    • Line 8: warning: comment on exported function MsgBoxError should be of the form "MsgBoxError ..." (golint)
    • Line 17: warning: exported function OpenFile should have comment or be unexported (golint)
    • Line 26: warning: exported function SaveFile should have comment or be unexported (golint)
    • Line 35: warning: exported function MsgBox should have comment or be unexported (golint)
    • ui/areahandler.go
    • Line 155: warning: comment on exported type AreaMouseEvent should be of the form "AreaMouseEvent ..." (with optional leading article) (golint)
    • Line 223: warning: comment on exported type AreaKeyEvent should be of the form "AreaKeyEvent ..." (with optional leading article) (golint)
    • Line 246: warning: comment on exported type Modifiers should be of the form "Modifiers ..." (with optional leading article) (golint)
    • Line 251: warning: exported const Ctrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 257: warning: comment on exported type ExtKey should be of the form "ExtKey ..." (with optional leading article) (golint)
    • Line 262: warning: exported const Escape should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • ui/examples/updateui.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/andlabs/ui (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!