Preparing report...

Report for github.com/gopherjs/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 13: warning: exported type ContextAttributes should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function DefaultAttributes should be of the form "DefaultAttributes ..." (golint)
    • Line 45: warning: exported type Context should have comment or be unexported (golint)
    • Line 372: warning: comment on exported method Context.GetContextAttributes should be of the form "GetContextAttributes ..." (golint)
    • Line 387: warning: comment on exported method Context.ActiveTexture should be of the form "ActiveTexture ..." (golint)
    • Line 392: warning: comment on exported method Context.AttachShader should be of the form "AttachShader ..." (golint)
    • Line 397: warning: comment on exported method Context.BindAttribLocation should be of the form "BindAttribLocation ..." (golint)
    • Line 402: warning: comment on exported method Context.BindBuffer should be of the form "BindBuffer ..." (golint)
    • Line 407: warning: comment on exported method Context.BindFramebuffer should be of the form "BindFramebuffer ..." (golint)
    • Line 412: warning: comment on exported method Context.BindRenderbuffer should be of the form "BindRenderbuffer ..." (golint)
    • Line 417: warning: comment on exported method Context.BindTexture should be of the form "BindTexture ..." (golint)
    • Line 422: warning: comment on exported method Context.BlendColor should be of the form "BlendColor ..." (golint)
    • Line 427: warning: comment on exported method Context.BlendEquation should be of the form "BlendEquation ..." (golint)
    • Line 433: warning: comment on exported method Context.BlendEquationSeparate should be of the form "BlendEquationSeparate ..." (golint)
    • Line 439: warning: comment on exported method Context.BlendFunc should be of the form "BlendFunc ..." (golint)
    • Line 444: warning: comment on exported method Context.BlendFuncSeparate should be of the form "BlendFuncSeparate ..." (golint)
    • Line 449: warning: comment on exported method Context.BufferData should be of the form "BufferData ..." (golint)
    • Line 455: warning: comment on exported method Context.BufferSubData should be of the form "BufferSubData ..." (golint)
    • Line 460: warning: comment on exported method Context.CheckFramebufferStatus should be of the form "CheckFramebufferStatus ..." (golint)
    • Line 466: warning: comment on exported method Context.Clear should be of the form "Clear ..." (golint)
    • Line 471: warning: comment on exported method Context.ClearColor should be of the form "ClearColor ..." (golint)
    • Line 476: warning: comment on exported method Context.ClearDepth should be of the form "ClearDepth ..." (golint)
    • Line 481: warning: exported method Context.ClearStencil should have comment or be unexported (golint)
    • Line 485: warning: comment on exported method Context.ColorMask should be of the form "ColorMask ..." (golint)
    • Line 491: warning: comment on exported method Context.CompileShader should be of the form "CompileShader ..." (golint)
    • Line 496: warning: comment on exported method Context.CopyTexImage2D should be of the form "CopyTexImage2D ..." (golint)
    • Line 501: warning: comment on exported method Context.CopyTexSubImage2D should be of the form "CopyTexSubImage2D ..." (golint)
    • Line 506: warning: comment on exported method Context.CreateBuffer should be of the form "CreateBuffer ..." (golint)
    • Line 511: warning: comment on exported method Context.CreateFramebuffer should be of the form "CreateFramebuffer ..." (golint)
    • Line 516: warning: comment on exported method Context.CreateProgram should be of the form "CreateProgram ..." (golint)
    • Line 522: warning: comment on exported method Context.CreateRenderbuffer should be of the form "CreateRenderbuffer ..." (golint)
    • Line 527: warning: comment on exported method Context.CreateShader should be of the form "CreateShader ..." (golint)
    • Line 532: warning: comment on exported method Context.CreateTexture should be of the form "CreateTexture ..." (golint)
    • Line 537: warning: comment on exported method Context.CullFace should be of the form "CullFace ..." (golint)
    • Line 542: warning: comment on exported method Context.DeleteBuffer should be of the form "DeleteBuffer ..." (golint)
    • Line 547: warning: comment on exported method Context.DeleteFramebuffer should be of the form "DeleteFramebuffer ..." (golint)
    • Line 554: warning: comment on exported method Context.DeleteProgram should be of the form "DeleteProgram ..." (golint)
    • Line 562: warning: comment on exported method Context.DeleteRenderbuffer should be of the form "DeleteRenderbuffer ..." (golint)
    • Line 569: warning: comment on exported method Context.DeleteShader should be of the form "DeleteShader ..." (golint)
    • Line 574: warning: comment on exported method Context.DeleteTexture should be of the form "DeleteTexture ..." (golint)
    • Line 579: warning: comment on exported method Context.DepthFunc should be of the form "DepthFunc ..." (golint)
    • Line 585: warning: comment on exported method Context.DepthMask should be of the form "DepthMask ..." (golint)
    • Line 590: warning: comment on exported method Context.DepthRange should be of the form "DepthRange ..." (golint)
    • Line 595: warning: comment on exported method Context.DetachShader should be of the form "DetachShader ..." (golint)
    • Line 600: warning: comment on exported method Context.Disable should be of the form "Disable ..." (golint)
    • Line 605: warning: comment on exported method Context.DisableVertexAttribArray should be of the form "DisableVertexAttribArray ..." (golint)
    • Line 610: warning: comment on exported method Context.DrawArrays should be of the form "DrawArrays ..." (golint)
    • Line 615: warning: comment on exported method Context.DrawElements should be of the form "DrawElements ..." (golint)
    • Line 620: warning: comment on exported method Context.Enable should be of the form "Enable ..." (golint)
    • Line 625: warning: comment on exported method Context.EnableVertexAttribArray should be of the form "EnableVertexAttribArray ..." (golint)
    • Line 631: warning: exported method Context.Finish should have comment or be unexported (golint)
    • Line 635: warning: exported method Context.Flush should have comment or be unexported (golint)
    • Line 639: warning: comment on exported method Context.FrameBufferRenderBuffer should be of the form "FrameBufferRenderBuffer ..." (golint)
    • Line 645: warning: comment on exported method Context.FramebufferTexture2D should be of the form "FramebufferTexture2D ..." (golint)
    • Line 650: warning: comment on exported method Context.FrontFace should be of the form "FrontFace ..." (golint)
    • Line 656: warning: comment on exported method Context.GenerateMipmap should be of the form "GenerateMipmap ..." (golint)
    • Line 662: warning: comment on exported method Context.GetActiveAttrib should be of the form "GetActiveAttrib ..." (golint)
    • Line 668: warning: comment on exported method Context.GetActiveUniform should be of the form "GetActiveUniform ..." (golint)
    • Line 674: warning: comment on exported method Context.GetAttachedShaders should be of the form "GetAttachedShaders ..." (golint)
    • Line 684: warning: comment on exported method Context.GetAttribLocation should be of the form "GetAttribLocation ..." (golint)
    • Line 689: warning: comment on exported method Context.GetBufferParameter should be of the form "GetBufferParameter ..." (golint)
    • Line 695: warning: comment on exported method Context.GetParameter should be of the form "GetParameter ..." (golint)
    • Line 701: warning: comment on exported method Context.GetError should be of the form "GetError ..." (golint)
    • Line 706: warning: comment on exported method Context.GetExtension should be of the form "GetExtension ..." (golint)
    • Line 712: warning: comment on exported method Context.GetFramebufferAttachmentParameter should be of the form "GetFramebufferAttachmentParameter ..." (golint)
    • Line 718: warning: comment on exported method Context.GetProgramParameteri should be of the form "GetProgramParameteri ..." (golint)
    • Line 724: warning: comment on exported method Context.GetProgramParameterb should be of the form "GetProgramParameterb ..." (golint)
    • Line 730: warning: comment on exported method Context.GetProgramInfoLog should be of the form "GetProgramInfoLog ..." (golint)
    • Line 736: warning: comment on exported method Context.GetRenderbufferParameter should be of the form "GetRenderbufferParameter ..." (golint)
    • Line 742: warning: comment on exported method Context.GetShaderParameter should be of the form "GetShaderParameter ..." (golint)
    • Line 748: warning: comment on exported method Context.GetShaderParameterb should be of the form "GetShaderParameterb ..." (golint)
    • Line 753: warning: comment on exported method Context.GetShaderInfoLog should be of the form "GetShaderInfoLog ..." (golint)
    • Line 758: warning: comment on exported method Context.GetShaderSource should be of the form "GetShaderSource ..." (golint)
    • Line 763: warning: comment on exported method Context.GetSupportedExtensions should be of the form "GetSupportedExtensions ..." (golint)
    • Line 773: warning: comment on exported method Context.GetTexParameter should be of the form "GetTexParameter ..." (golint)
    • Line 779: warning: comment on exported method Context.GetUniform should be of the form "GetUniform ..." (golint)
    • Line 785: warning: comment on exported method Context.GetUniformLocation should be of the form "GetUniformLocation ..." (golint)
    • Line 791: warning: comment on exported method Context.GetVertexAttrib should be of the form "GetVertexAttrib ..." (golint)
    • Line 798: warning: comment on exported method Context.GetVertexAttribOffset should be of the form "GetVertexAttribOffset ..." (golint)
    • Line 805: warning: comment on exported method Context.IsBuffer should be of the form "IsBuffer ..." (golint)
    • Line 810: warning: comment on exported method Context.IsContextLost should be of the form "IsContextLost ..." (golint)
    • Line 815: warning: comment on exported method Context.IsFramebuffer should be of the form "IsFramebuffer ..." (golint)
    • Line 820: warning: comment on exported method Context.IsProgram should be of the form "IsProgram ..." (golint)
    • Line 825: warning: comment on exported method Context.IsRenderbuffer should be of the form "IsRenderbuffer ..." (golint)
    • Line 830: warning: comment on exported method Context.IsShader should be of the form "IsShader ..." (golint)
    • Line 835: warning: comment on exported method Context.IsTexture should be of the form "IsTexture ..." (golint)
    • Line 840: warning: comment on exported method Context.IsEnabled should be of the form "IsEnabled ..." (golint)
    • Line 845: warning: comment on exported method Context.LineWidth should be of the form "LineWidth ..." (golint)
    • Line 850: warning: comment on exported method Context.LinkProgram should be of the form "LinkProgram ..." (golint)
    • Line 856: warning: comment on exported method Context.PixelStorei should be of the form "PixelStorei ..." (golint)
    • Line 862: warning: comment on exported method Context.PolygonOffset should be of the form "PolygonOffset ..." (golint)
    • Line 868: warning: comment on exported method Context.ReadPixels should be of the form "ReadPixels ..." (golint)
    • Line 875: warning: comment on exported method Context.RenderbufferStorage should be of the form "RenderbufferStorage ..." (golint)
    • Line 884: warning: comment on exported method Context.Scissor should be of the form "Scissor ..." (golint)
    • Line 889: warning: comment on exported method Context.ShaderSource should be of the form "ShaderSource ..." (golint)
    • Line 901: warning: comment on exported method Context.TexImage2D should be of the form "TexImage2D ..." (golint)
    • Line 906: warning: comment on exported method Context.TexParameteri should be of the form "TexParameteri ..." (golint)
    • Line 911: warning: comment on exported method Context.TexSubImage2D should be of the form "TexSubImage2D ..." (golint)
    • Line 916: warning: comment on exported method Context.Uniform1f should be of the form "Uniform1f ..." (golint)
    • Line 921: warning: comment on exported method Context.Uniform1i should be of the form "Uniform1i ..." (golint)
    • Line 926: warning: comment on exported method Context.Uniform2f should be of the form "Uniform2f ..." (golint)
    • Line 931: warning: comment on exported method Context.Uniform2i should be of the form "Uniform2i ..." (golint)
    • Line 936: warning: comment on exported method Context.Uniform3f should be of the form "Uniform3f ..." (golint)
    • Line 941: warning: comment on exported method Context.Uniform3i should be of the form "Uniform3i ..." (golint)
    • Line 946: warning: comment on exported method Context.Uniform4f should be of the form "Uniform4f ..." (golint)
    • Line 951: warning: comment on exported method Context.Uniform4i should be of the form "Uniform4i ..." (golint)
    • Line 965: warning: comment on exported method Context.UniformMatrix2fv should be of the form "UniformMatrix2fv ..." (golint)
    • Line 971: warning: comment on exported method Context.UniformMatrix3fv should be of the form "UniformMatrix3fv ..." (golint)
    • Line 977: warning: comment on exported method Context.UniformMatrix4fv should be of the form "UniformMatrix4fv ..." (golint)
    • Line 983: warning: comment on exported method Context.UseProgram should be of the form "UseProgram ..." (golint)
    • Line 988: warning: comment on exported method Context.ValidateProgram should be of the form "ValidateProgram ..." (golint)
    • Line 993: warning: exported method Context.VertexAttribPointer should have comment or be unexported (golint)
    • Line 1006: 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!


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!