Preparing report...

Report for github.com/n2d/webgl

A+    Excellent!    Found 1 issues across 1 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!


gocyclo100%

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.

No problems detected. Good job!


golint88%

Golint is a linter for Go source code.

    • webgl/webgl.go
    • Line 14: warning: exported type ContextAttributes should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function DefaultAttributes should be of the form "DefaultAttributes ..." (golint)
    • Line 46: warning: exported type Context should have comment or be unexported (golint)
    • Line 371: warning: comment on exported method Context.GetContextAttributes should be of the form "GetContextAttributes ..." (golint)
    • Line 386: warning: comment on exported method Context.ActiveTexture should be of the form "ActiveTexture ..." (golint)
    • Line 391: warning: comment on exported method Context.AttachShader should be of the form "AttachShader ..." (golint)
    • Line 396: warning: comment on exported method Context.BindAttribLocation should be of the form "BindAttribLocation ..." (golint)
    • Line 401: warning: comment on exported method Context.BindBuffer should be of the form "BindBuffer ..." (golint)
    • Line 406: warning: comment on exported method Context.BindFramebuffer should be of the form "BindFramebuffer ..." (golint)
    • Line 411: warning: comment on exported method Context.BindRenderbuffer should be of the form "BindRenderbuffer ..." (golint)
    • Line 416: warning: comment on exported method Context.BindTexture should be of the form "BindTexture ..." (golint)
    • Line 421: warning: comment on exported method Context.BlendColor should be of the form "BlendColor ..." (golint)
    • Line 426: warning: comment on exported method Context.BlendEquation should be of the form "BlendEquation ..." (golint)
    • Line 432: warning: comment on exported method Context.BlendEquationSeparate should be of the form "BlendEquationSeparate ..." (golint)
    • Line 438: warning: comment on exported method Context.BlendFunc should be of the form "BlendFunc ..." (golint)
    • Line 443: warning: comment on exported method Context.BlendFuncSeparate should be of the form "BlendFuncSeparate ..." (golint)
    • Line 448: warning: comment on exported method Context.BufferData should be of the form "BufferData ..." (golint)
    • Line 454: warning: comment on exported method Context.BufferSubData should be of the form "BufferSubData ..." (golint)
    • Line 459: warning: comment on exported method Context.CheckFramebufferStatus should be of the form "CheckFramebufferStatus ..." (golint)
    • Line 465: warning: comment on exported method Context.Clear should be of the form "Clear ..." (golint)
    • Line 470: warning: comment on exported method Context.ClearColor should be of the form "ClearColor ..." (golint)
    • Line 475: warning: comment on exported method Context.ClearDepth should be of the form "ClearDepth ..." (golint)
    • Line 480: warning: exported method Context.ClearStencil should have comment or be unexported (golint)
    • Line 484: warning: comment on exported method Context.ColorMask should be of the form "ColorMask ..." (golint)
    • Line 490: warning: comment on exported method Context.CompileShader should be of the form "CompileShader ..." (golint)
    • Line 495: warning: comment on exported method Context.CopyTexImage2D should be of the form "CopyTexImage2D ..." (golint)
    • Line 500: warning: comment on exported method Context.CopyTexSubImage2D should be of the form "CopyTexSubImage2D ..." (golint)
    • Line 505: warning: comment on exported method Context.CreateBuffer should be of the form "CreateBuffer ..." (golint)
    • Line 510: warning: comment on exported method Context.CreateFramebuffer should be of the form "CreateFramebuffer ..." (golint)
    • Line 515: warning: comment on exported method Context.CreateProgram should be of the form "CreateProgram ..." (golint)
    • Line 521: warning: comment on exported method Context.CreateRenderbuffer should be of the form "CreateRenderbuffer ..." (golint)
    • Line 526: warning: comment on exported method Context.CreateShader should be of the form "CreateShader ..." (golint)
    • Line 531: warning: comment on exported method Context.CreateTexture should be of the form "CreateTexture ..." (golint)
    • Line 536: warning: comment on exported method Context.CullFace should be of the form "CullFace ..." (golint)
    • Line 541: warning: comment on exported method Context.DeleteBuffer should be of the form "DeleteBuffer ..." (golint)
    • Line 546: warning: comment on exported method Context.DeleteFramebuffer should be of the form "DeleteFramebuffer ..." (golint)
    • Line 553: warning: comment on exported method Context.DeleteProgram should be of the form "DeleteProgram ..." (golint)
    • Line 561: warning: comment on exported method Context.DeleteRenderbuffer should be of the form "DeleteRenderbuffer ..." (golint)
    • Line 568: warning: comment on exported method Context.DeleteShader should be of the form "DeleteShader ..." (golint)
    • Line 573: warning: comment on exported method Context.DeleteTexture should be of the form "DeleteTexture ..." (golint)
    • Line 578: warning: comment on exported method Context.DepthFunc should be of the form "DepthFunc ..." (golint)
    • Line 584: warning: comment on exported method Context.DepthMask should be of the form "DepthMask ..." (golint)
    • Line 589: warning: comment on exported method Context.DepthRange should be of the form "DepthRange ..." (golint)
    • Line 594: warning: comment on exported method Context.DetachShader should be of the form "DetachShader ..." (golint)
    • Line 599: warning: comment on exported method Context.Disable should be of the form "Disable ..." (golint)
    • Line 604: warning: comment on exported method Context.DisableVertexAttribArray should be of the form "DisableVertexAttribArray ..." (golint)
    • Line 609: warning: comment on exported method Context.DrawArrays should be of the form "DrawArrays ..." (golint)
    • Line 614: warning: comment on exported method Context.DrawElements should be of the form "DrawElements ..." (golint)
    • Line 619: warning: comment on exported method Context.Enable should be of the form "Enable ..." (golint)
    • Line 624: warning: comment on exported method Context.EnableVertexAttribArray should be of the form "EnableVertexAttribArray ..." (golint)
    • Line 630: warning: exported method Context.Finish should have comment or be unexported (golint)
    • Line 634: warning: exported method Context.Flush should have comment or be unexported (golint)
    • Line 638: warning: comment on exported method Context.FrameBufferRenderBuffer should be of the form "FrameBufferRenderBuffer ..." (golint)
    • Line 644: warning: comment on exported method Context.FramebufferTexture2D should be of the form "FramebufferTexture2D ..." (golint)
    • Line 649: warning: comment on exported method Context.FrontFace should be of the form "FrontFace ..." (golint)
    • Line 655: warning: comment on exported method Context.GenerateMipmap should be of the form "GenerateMipmap ..." (golint)
    • Line 661: warning: comment on exported method Context.GetActiveAttrib should be of the form "GetActiveAttrib ..." (golint)
    • Line 667: warning: comment on exported method Context.GetActiveUniform should be of the form "GetActiveUniform ..." (golint)
    • Line 673: warning: comment on exported method Context.GetAttachedShaders should be of the form "GetAttachedShaders ..." (golint)
    • Line 683: warning: comment on exported method Context.GetAttribLocation should be of the form "GetAttribLocation ..." (golint)
    • Line 688: warning: comment on exported method Context.GetBufferParameter should be of the form "GetBufferParameter ..." (golint)
    • Line 694: warning: comment on exported method Context.GetParameter should be of the form "GetParameter ..." (golint)
    • Line 700: warning: comment on exported method Context.GetError should be of the form "GetError ..." (golint)
    • Line 705: warning: comment on exported method Context.GetExtension should be of the form "GetExtension ..." (golint)
    • Line 711: warning: comment on exported method Context.GetFramebufferAttachmentParameter should be of the form "GetFramebufferAttachmentParameter ..." (golint)
    • Line 717: warning: comment on exported method Context.GetProgramParameteri should be of the form "GetProgramParameteri ..." (golint)
    • Line 723: warning: comment on exported method Context.GetProgramParameterb should be of the form "GetProgramParameterb ..." (golint)
    • Line 729: warning: comment on exported method Context.GetProgramInfoLog should be of the form "GetProgramInfoLog ..." (golint)
    • Line 735: warning: comment on exported method Context.GetRenderbufferParameter should be of the form "GetRenderbufferParameter ..." (golint)
    • Line 741: warning: comment on exported method Context.GetShaderParameter should be of the form "GetShaderParameter ..." (golint)
    • Line 747: warning: comment on exported method Context.GetShaderParameterb should be of the form "GetShaderParameterb ..." (golint)
    • Line 752: warning: comment on exported method Context.GetShaderInfoLog should be of the form "GetShaderInfoLog ..." (golint)
    • Line 757: warning: comment on exported method Context.GetShaderSource should be of the form "GetShaderSource ..." (golint)
    • Line 762: warning: comment on exported method Context.GetSupportedExtensions should be of the form "GetSupportedExtensions ..." (golint)
    • Line 772: warning: comment on exported method Context.GetTexParameter should be of the form "GetTexParameter ..." (golint)
    • Line 778: warning: comment on exported method Context.GetUniform should be of the form "GetUniform ..." (golint)
    • Line 784: warning: comment on exported method Context.GetUniformLocation should be of the form "GetUniformLocation ..." (golint)
    • Line 790: warning: comment on exported method Context.GetVertexAttrib should be of the form "GetVertexAttrib ..." (golint)
    • Line 797: warning: comment on exported method Context.GetVertexAttribOffset should be of the form "GetVertexAttribOffset ..." (golint)
    • Line 804: warning: comment on exported method Context.IsBuffer should be of the form "IsBuffer ..." (golint)
    • Line 809: warning: comment on exported method Context.IsContextLost should be of the form "IsContextLost ..." (golint)
    • Line 814: warning: comment on exported method Context.IsFramebuffer should be of the form "IsFramebuffer ..." (golint)
    • Line 819: warning: comment on exported method Context.IsProgram should be of the form "IsProgram ..." (golint)
    • Line 824: warning: comment on exported method Context.IsRenderbuffer should be of the form "IsRenderbuffer ..." (golint)
    • Line 829: warning: comment on exported method Context.IsShader should be of the form "IsShader ..." (golint)
    • Line 834: warning: comment on exported method Context.IsTexture should be of the form "IsTexture ..." (golint)
    • Line 839: warning: comment on exported method Context.IsEnabled should be of the form "IsEnabled ..." (golint)
    • Line 844: warning: comment on exported method Context.LineWidth should be of the form "LineWidth ..." (golint)
    • Line 849: warning: comment on exported method Context.LinkProgram should be of the form "LinkProgram ..." (golint)
    • Line 855: warning: comment on exported method Context.PixelStorei should be of the form "PixelStorei ..." (golint)
    • Line 861: warning: comment on exported method Context.PolygonOffset should be of the form "PolygonOffset ..." (golint)
    • Line 867: warning: comment on exported method Context.ReadPixels should be of the form "ReadPixels ..." (golint)
    • Line 874: warning: comment on exported method Context.RenderbufferStorage should be of the form "RenderbufferStorage ..." (golint)
    • Line 883: warning: comment on exported method Context.Scissor should be of the form "Scissor ..." (golint)
    • Line 888: warning: comment on exported method Context.ShaderSource should be of the form "ShaderSource ..." (golint)
    • Line 900: warning: comment on exported method Context.TexImage2D should be of the form "TexImage2D ..." (golint)
    • Line 905: warning: comment on exported method Context.TexParameteri should be of the form "TexParameteri ..." (golint)
    • Line 910: warning: comment on exported method Context.TexSubImage2D should be of the form "TexSubImage2D ..." (golint)
    • Line 915: warning: comment on exported method Context.Uniform1f should be of the form "Uniform1f ..." (golint)
    • Line 920: warning: comment on exported method Context.Uniform1i should be of the form "Uniform1i ..." (golint)
    • Line 925: warning: comment on exported method Context.Uniform2f should be of the form "Uniform2f ..." (golint)
    • Line 930: warning: comment on exported method Context.Uniform2i should be of the form "Uniform2i ..." (golint)
    • Line 935: warning: comment on exported method Context.Uniform3f should be of the form "Uniform3f ..." (golint)
    • Line 940: warning: comment on exported method Context.Uniform3i should be of the form "Uniform3i ..." (golint)
    • Line 945: warning: comment on exported method Context.Uniform4f should be of the form "Uniform4f ..." (golint)
    • Line 950: warning: comment on exported method Context.Uniform4i should be of the form "Uniform4i ..." (golint)
    • Line 964: warning: comment on exported method Context.UniformMatrix2fv should be of the form "UniformMatrix2fv ..." (golint)
    • Line 970: warning: comment on exported method Context.UniformMatrix3fv should be of the form "UniformMatrix3fv ..." (golint)
    • Line 976: warning: comment on exported method Context.UniformMatrix4fv should be of the form "UniformMatrix4fv ..." (golint)
    • Line 982: warning: comment on exported method Context.UseProgram should be of the form "UseProgram ..." (golint)
    • Line 987: warning: comment on exported method Context.ValidateProgram should be of the form "ValidateProgram ..." (golint)
    • Line 992: warning: exported method Context.VertexAttribPointer should have comment or be unexported (golint)
    • Line 1005: warning: comment on exported method Context.Viewport should be of the form "Viewport ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.

    • webgl/webgl.go
    • Line 11: warning: could not import syscall/js (invalid package name: "") (ineffassign)
    • Line 375: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 388: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 393: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 398: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 403: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 408: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 413: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 418: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 423: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 429: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 435: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 440: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 445: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 451: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 456: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 462: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 467: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 472: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 477: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 481: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 487: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 492: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 497: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 502: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 507: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 512: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 518: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 523: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 528: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 533: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 538: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 543: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 550: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 558: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 565: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 570: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 575: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 581: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 586: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 591: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 596: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 601: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 606: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 611: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 616: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 621: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 627: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 631: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 635: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 641: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 646: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 652: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 658: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 664: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 670: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 675: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 685: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 691: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 697: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 702: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 708: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 714: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 720: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 726: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 732: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 738: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 744: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 749: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 754: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 759: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 764: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 775: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 781: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 787: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 794: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 799: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 806: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 811: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 816: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 821: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 826: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 831: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 836: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 841: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 846: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 852: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 858: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 864: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 871: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 876: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 885: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 890: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 902: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 907: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 912: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 917: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 922: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 927: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 932: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 937: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 942: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 947: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 952: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 967: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 973: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 979: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 984: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 989: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 993: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)
    • Line 1008: warning: c.Call undefined (type *Context has no field or method Call) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!