Preparing report...

Report for github.com/golang-ui/nuklear

A+    Excellent!    Found 12 issues across 24 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint62%

Golint is a linter for Go source code.

    • nuklear/nk/impl_glfw_common.go
    • Line 20: warning: exported type PlatformInitOption should have comment or be unexported (golint)
    • Line 23: warning: exported const PlatformDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type NkGLFWClipbard should have comment or be unexported (golint)
    • Line 31: warning: exported function NewGLFWClipboard should have comment or be unexported (golint)
    • Line 35: warning: exported method NkGLFWClipbard.SetText should have comment or be unexported (golint)
    • Line 39: warning: exported method NkGLFWClipbard.GetText should have comment or be unexported (golint)
    • Line 43: warning: exported function NkPlatformInit should have comment or be unexported (golint)
    • Line 66: warning: exported function NkPlatformShutdown should have comment or be unexported (golint)
    • Line 73: warning: exported function NkFontStashBegin should have comment or be unexported (golint)
    • Line 80: warning: exported function NkFontStashEnd should have comment or be unexported (golint)
    • Line 90: warning: exported function NkPlatformNewFrame should have comment or be unexported (golint)
    • Line 182: warning: don't use underscores in Go names; struct field display_width should be displayWidth (golint)
    • Line 183: warning: don't use underscores in Go names; struct field display_height should be displayHeight (golint)
    • Line 196: warning: exported function NkPlatformDisplayHandle should have comment or be unexported (golint)
    • nuklear/nk/impl_glfw_gl3.go
    • Line 26: warning: exported function NkPlatformRender should have comment or be unexported (golint)
    • Line 270: warning: don't use underscores in Go names; struct field vert_shdr should be vertShdr (golint)
    • Line 271: warning: don't use underscores in Go names; struct field frag_shdr should be fragShdr (golint)
    • Line 273: warning: don't use underscores in Go names; struct field attrib_pos should be attribPos (golint)
    • Line 274: warning: don't use underscores in Go names; struct field attrib_uv should be attribUv (golint)
    • Line 275: warning: don't use underscores in Go names; struct field attrib_col should be attribCol (golint)
    • Line 276: warning: don't use underscores in Go names; struct field uniform_tex should be uniformTex (golint)
    • Line 277: warning: don't use underscores in Go names; struct field uniform_proj should be uniformProj (golint)
    • Line 279: warning: don't use underscores in Go names; struct field font_tex should be fontTex (golint)
    • nuklear/cmd/nk-example/main.go
    • Line 166: warning: exported type Option should have comment or be unexported (golint)
    • Line 169: warning: exported const Easy should have comment (or a comment on this block) or be unexported (golint)
    • Line 173: warning: exported type State should have comment or be unexported (golint)
    • nuklear/nk/etc.go
    • Line 16: warning: exported type ClipboardPlugin should have comment or be unexported (golint)
    • Line 38: warning: exported method Context.SetClipboard should have comment or be unexported (golint)
    • Line 43: warning: exported method Context.Input should have comment or be unexported (golint)
    • Line 47: warning: exported method Context.Style should have comment or be unexported (golint)
    • Line 51: warning: exported method Context.Memory should have comment or be unexported (golint)
    • Line 55: warning: exported method Context.Clip should have comment or be unexported (golint)
    • Line 59: warning: exported method Context.LastWidgetState should have comment or be unexported (golint)
    • Line 63: warning: exported method Context.DeltaTimeSeconds should have comment or be unexported (golint)
    • Line 67: warning: exported method Context.ButtonBehavior should have comment or be unexported (golint)
    • Line 71: warning: exported method Context.Stacks should have comment or be unexported (golint)
    • Line 75: warning: exported method Input.Mouse should have comment or be unexported (golint)
    • Line 79: warning: exported method Input.Keyboard should have comment or be unexported (golint)
    • Line 83: warning: exported method Keyboard.Text should have comment or be unexported (golint)
    • Line 87: warning: exported method Mouse.Grab should have comment or be unexported (golint)
    • Line 91: warning: exported method Mouse.Grabbed should have comment or be unexported (golint)
    • Line 95: warning: exported method Mouse.Ungrab should have comment or be unexported (golint)
    • Line 99: warning: exported method Mouse.ScrollDelta should have comment or be unexported (golint)
    • Line 103: warning: exported method Mouse.Pos should have comment or be unexported (golint)
    • Line 107: warning: exported method Mouse.SetPos should have comment or be unexported (golint)
    • Line 112: warning: exported method Mouse.Prev should have comment or be unexported (golint)
    • Line 116: warning: exported method Mouse.Delta should have comment or be unexported (golint)
    • Line 120: warning: exported var VertexLayoutEnd should have comment or be unexported (golint)
    • Line 126: warning: exported function NkDrawForeach should have comment or be unexported (golint)
    • Line 137: warning: exported function NkFontAtlasAddFromBytes should have comment or be unexported (golint)
    • Line 142: warning: exported method FontConfig.SetPixelSnap should have comment or be unexported (golint)
    • Line 152: warning: exported method FontConfig.SetOversample should have comment or be unexported (golint)
    • Line 157: warning: exported method FontConfig.SetRange should have comment or be unexported (golint)
    • Line 161: warning: exported method FontConfig.SetRangeGoRune should have comment or be unexported (golint)
    • Line 165: warning: exported method Handle.ID should have comment or be unexported (golint)
    • Line 169: warning: exported method Handle.Ptr should have comment or be unexported (golint)
    • Line 173: warning: exported method FontAtlas.DefaultFont should have comment or be unexported (golint)
    • Line 177: warning: exported method Color.R should have comment or be unexported (golint)
    • Line 181: warning: exported method Color.G should have comment or be unexported (golint)
    • Line 185: warning: exported method Color.B should have comment or be unexported (golint)
    • Line 189: warning: exported method Color.A should have comment or be unexported (golint)
    • Line 193: warning: exported method Color.RGBA should have comment or be unexported (golint)
    • Line 197: warning: exported method Color.RGBAi should have comment or be unexported (golint)
    • Line 201: warning: exported method Color.SetR should have comment or be unexported (golint)
    • Line 205: warning: exported method Color.SetG should have comment or be unexported (golint)
    • Line 209: warning: exported method Color.SetB should have comment or be unexported (golint)
    • Line 213: warning: exported method Color.SetA should have comment or be unexported (golint)
    • Line 217: warning: exported method Color.SetRGBA should have comment or be unexported (golint)
    • Line 224: warning: exported method Color.SetRGBAi should have comment or be unexported (golint)
    • Line 231: warning: exported method DrawCommand.ElemCount should have comment or be unexported (golint)
    • Line 235: warning: exported method DrawCommand.Texture should have comment or be unexported (golint)
    • Line 239: warning: exported method DrawCommand.ClipRect should have comment or be unexported (golint)
    • Line 243: warning: exported method Font.Handle should have comment or be unexported (golint)
    • Line 247: warning: exported method Rect.X should have comment or be unexported (golint)
    • Line 251: warning: exported method Rect.Y should have comment or be unexported (golint)
    • Line 255: warning: exported method Rect.W should have comment or be unexported (golint)
    • Line 259: warning: exported method Rect.H should have comment or be unexported (golint)
    • Line 263: warning: exported method Vec2.X should have comment or be unexported (golint)
    • Line 267: warning: exported method Vec2.Y should have comment or be unexported (golint)
    • Line 271: warning: exported method Vec2.SetX should have comment or be unexported (golint)
    • Line 275: warning: exported method Vec2.SetY should have comment or be unexported (golint)
    • Line 279: warning: exported method Vec2.Reset should have comment or be unexported (golint)
    • Line 299: warning: exported method ListView.Begin should have comment or be unexported (golint)
    • Line 303: warning: exported method ListView.End should have comment or be unexported (golint)
    • Line 307: warning: exported method ListView.Count should have comment or be unexported (golint)
    • Line 311: warning: exported method Panel.Bounds should have comment or be unexported (golint)
    • Line 315: warning: exported method StyleText.Color should have comment or be unexported (golint)
    • Line 319: warning: exported method Style.Text should have comment or be unexported (golint)
    • Line 323: warning: exported method Style.Window should have comment or be unexported (golint)
    • Line 327: warning: exported method StyleWindow.Background should have comment or be unexported (golint)
    • Line 331: warning: exported method StyleWindow.Spacing should have comment or be unexported (golint)
    • Line 335: warning: exported method StyleWindow.Padding should have comment or be unexported (golint)
    • Line 339: warning: exported method StyleWindow.GroupPadding should have comment or be unexported (golint)
    • Line 343: warning: exported function SetSpacing should have comment or be unexported (golint)
    • Line 347: warning: exported function SetPadding should have comment or be unexported (golint)
    • Line 351: warning: exported function SetGroupPadding should have comment or be unexported (golint)
    • Line 355: warning: exported function SetTextColor should have comment or be unexported (golint)
    • Line 359: warning: exported function SetBackgroundColor should have comment or be unexported (golint)
    • Line 363: warning: exported method TextEdit.GetGoString should have comment or be unexported (golint)
    • nuklear/cmd/nk-android/main.go
    • Line 262: warning: exported type Option should have comment or be unexported (golint)
    • Line 265: warning: exported const Easy should have comment (or a comment on this block) or be unexported (golint)
    • Line 269: warning: exported type State should have comment or be unexported (golint)
    • nuklear/cmd/nk-example-sdl2/main.go
    • Line 158: warning: exported type Option should have comment or be unexported (golint)
    • Line 161: warning: exported const Easy should have comment (or a comment on this block) or be unexported (golint)
    • Line 165: warning: exported type State should have comment or be unexported (golint)

gocyclo91%

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.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!