Preparing report...

Report for github.com/raff/ultralight-go

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


gocyclo66%

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.


golint50%

Golint is a linter for Go source code.

    • ultralight-go/examples/browser/tab.go
    • Line 7: warning: exported type Tab should have comment or be unexported (golint)
    • Line 13: warning: exported function NewTab should have comment or be unexported (golint)
    • Line 47: warning: exported method Tab.Destroy should have comment or be unexported (golint)
    • Line 52: warning: exported method Tab.Show should have comment or be unexported (golint)
    • Line 63: warning: exported method Tab.Hide should have comment or be unexported (golint)
    • Line 74: warning: exported method Tab.Resize should have comment or be unexported (golint)
    • Line 81: warning: exported method Tab.View should have comment or be unexported (golint)
    • ultralight-go/examples/browser/ui.go
    • Line 12: warning: exported const UI_HEIGHT should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type UI should have comment or be unexported (golint)
    • Line 35: warning: exported function NewUI should have comment or be unexported (golint)
    • Line 117: warning: exported method UI.OnBack should have comment or be unexported (golint)
    • Line 124: warning: exported method UI.OnForward should have comment or be unexported (golint)
    • Line 131: warning: exported method UI.OnRefresh should have comment or be unexported (golint)
    • Line 138: warning: exported method UI.OnStop should have comment or be unexported (golint)
    • Line 145: warning: exported method UI.OnRequestNewTab should have comment or be unexported (golint)
    • Line 150: warning: exported method UI.OnRequestTabClose should have comment or be unexported (golint)
    • Line 176: warning: exported method UI.OnActiveTabChange should have comment or be unexported (golint)
    • Line 207: warning: exported method UI.OnRequestChangeURL should have comment or be unexported (golint)
    • Line 226: warning: exported method UI.CreateNewTab should have comment or be unexported (golint)
    • Line 237: warning: exported method UI.UpdateTabTitle should have comment or be unexported (golint)
    • Line 241: warning: exported method UI.UpdateTabURL should have comment or be unexported (golint)
    • Line 247: warning: exported method UI.UpdateTabNavigation should have comment or be unexported (golint)
    • Line 255: warning: exported method UI.SetLoading should have comment or be unexported (golint)
    • Line 259: warning: exported method UI.SetCanGoBack should have comment or be unexported (golint)
    • Line 263: warning: exported method UI.SetCanGoForward should have comment or be unexported (golint)
    • Line 267: warning: exported method UI.SetURL should have comment or be unexported (golint)
    • Line 271: warning: exported method UI.SetCursor should have comment or be unexported (golint)
    • ultralight-go/ultralight.go
    • Line 129: warning: exported type JSType should have comment or be unexported (golint)
    • Line 132: warning: exported const JSTypeUndefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 140: warning: exported type MessageSource should have comment or be unexported (golint)
    • Line 143: warning: exported const MessageSourceXML should have comment (or a comment on this block) or be unexported (golint)
    • Line 156: warning: exported type MessageLevel should have comment or be unexported (golint)
    • Line 159: warning: exported const MessageLevelLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 166: warning: exported type Cursor should have comment or be unexported (golint)
    • Line 169: warning: exported const CursorPointer should have comment (or a comment on this block) or be unexported (golint)
    • Line 234: warning: exported type Overlay should have comment or be unexported (golint)
    • Line 253: warning: comment on exported type JSContext should be of the form "JSContext ..." (with optional leading article) (golint)
    • Line 258: warning: comment on exported type JSGlobalContext should be of the form "JSGlobalContext ..." (with optional leading article) (golint)
    • Line 263: warning: comment on exported type JSValue should be of the form "JSValue ..." (with optional leading article) (golint)
    • Line 269: warning: comment on exported type JSObject should be of the form "JSObject ..." (with optional leading article) (golint)
    • Line 416: warning: exported method Window.SetCursor should have comment or be unexported (golint)
    • Line 420: warning: exported method Window.Width should have comment or be unexported (golint)
    • Line 424: warning: exported method Window.Height should have comment or be unexported (golint)
    • Line 428: warning: comment on exported method Window.NewOverlay should be of the form "NewOverlay ..." (golint)
    • Line 436: warning: exported method Window.RemoveOverlay should have comment or be unexported (golint)
    • Line 443: warning: exported method Window.NOverlay should have comment or be unexported (golint)
    • Line 447: warning: exported method Window.Overlay should have comment or be unexported (golint)
    • Line 456: warning: comment on exported method Window.IsHidden should be of the form "IsHidden ..." (golint)
    • Line 471: warning: comment on exported method Window.HasFocus should be of the form "HasFocus ..." (golint)
    • Line 476: warning: comment on exported method Window.Focus should be of the form "Focus ..." (golint)
    • Line 481: warning: comment on exported method Window.Unfocus should be of the form "Unfocus ..." (golint)
    • Line 631: warning: comment on exported method View.OnBeginLoading should be of the form "OnBeginLoading ..." (golint)
    • Line 645: warning: comment on exported method View.OnFinishLoading should be of the form "OnFinishLoading ..." (golint)
    • Line 659: warning: comment on exported method View.OnUpdateHistory should be of the form "OnUpdateHistory ..." (golint)
    • Line 673: warning: comment on exported method View.OnDOMReady should be of the form "OnDOMReady ..." (golint)
    • Line 688: warning: comment on exported method View.OnChangeTitle should be of the form "OnChangeTitle ..." (golint)
    • Line 702: warning: comment on exported method View.OnChangeURL should be of the form "OnChangeURL ..." (golint)
    • Line 716: warning: comment on exported method View.OnChangeCursor should be of the form "OnChangeCursor ..." (golint)
    • Line 730: warning: comment on exported method View.OnConsoleMessage should be of the form "OnConsoleMessage ..." (golint)
    • Line 746: warning: comment on exported method JSValue.Type should be of the form "Type ..." (golint)
    • Line 751: warning: comment on exported method JSValue.IsUndefined should be of the form "IsUndefined ..." (golint)
    • Line 756: warning: comment on exported method JSValue.IsNull should be of the form "IsNull ..." (golint)
    • Line 761: warning: comment on exported method JSValue.IsBoolean should be of the form "IsBoolean ..." (golint)
    • Line 766: warning: comment on exported method JSValue.IsNumber should be of the form "IsNumber ..." (golint)
    • Line 771: warning: comment on exported method JSValue.IsString should be of the form "IsString ..." (golint)
    • Line 776: warning: comment on exported method JSValue.IsObject should be of the form "IsObject ..." (golint)
    • Line 781: warning: comment on exported method JSValue.IsArray should be of the form "IsArray ..." (golint)
    • Line 786: warning: comment on exported method JSValue.IsDate should be of the form "IsDate ..." (golint)
    • Line 791: warning: exported method JSValue.IsFunction should have comment or be unexported (golint)
    • Line 799: warning: comment on exported method JSValue.Boolean should be of the form "Boolean ..." (golint)
    • Line 804: warning: comment on exported method JSValue.Number should be of the form "Number ..." (golint)
    • Line 819: warning: comment on exported method JSValue.Object should be of the form "Object ..." (golint)
    • Line 829: warning: comment on exported method JSContext.Undefined should be of the form "Undefined ..." (golint)
    • Line 834: warning: comment on exported method JSContext.Null should be of the form "Null ..." (golint)
    • Line 839: warning: comment on exported method JSContext.Boolean should be of the form "Boolean ..." (golint)
    • Line 844: warning: comment on exported method JSContext.Number should be of the form "Number ..." (golint)
    • Line 858: warning: exported method JSContext.JSValue should have comment or be unexported (golint)
    • Line 918: warning: exported type FunctionCallback should have comment or be unexported (golint)
    • Line 920: warning: comment on exported method JSContext.FunctionCallback should be of the form "FunctionCallback ..." (golint)
    • Line 928: warning: comment on exported method JSContext.GlobalObject should be of the form "GlobalObject ..." (golint)
    • Line 933: warning: comment on exported method JSContext.GlobalContext should be of the form "GlobalContext ..." (golint)
    • Line 938: warning: comment on exported method JSObject.IsFunction should be of the form "IsFunction ..." (golint)
    • Line 943: warning: comment on exported method JSObject.Call should be of the form "Call ..." (golint)
    • Line 974: warning: comment on exported method JSObject.SetProperty should be of the form "SetProperty ..." (golint)
    • Line 979: warning: comment on exported method JSObject.Property should be of the form "Property ..." (golint)
    • Line 984: warning: comment on exported method JSObject.PropertyNames should be of the form "PropertyNames ..." (golint)
    • Line 1001: warning: exported method JSObject.SetPropertyValue should have comment or be unexported (golint)
    • Line 1137: warning: exported type Config should have comment or be unexported (golint)
    • Line 1143: warning: exported function EnableImages should have comment or be unexported (golint)
    • Line 1149: warning: exported function EnableJavascript should have comment or be unexported (golint)
    • Line 1155: warning: exported function UseBGRA should have comment or be unexported (golint)
    • Line 1161: warning: exported function DeviceScaleHint should have comment or be unexported (golint)
    • Line 1167: warning: exported function FontFamilyStandard should have comment or be unexported (golint)
    • Line 1173: warning: exported function FontFamilyFixed should have comment or be unexported (golint)
    • Line 1179: warning: exported function FontFamilySerif should have comment or be unexported (golint)
    • Line 1185: warning: exported function FontFamilySansSerif should have comment or be unexported (golint)
    • Line 1191: warning: exported function UserAgent should have comment or be unexported (golint)
    • Line 1197: warning: exported function UserStylesheet should have comment or be unexported (golint)
    • Line 1203: warning: comment on exported function NewConfig should be of the form "NewConfig ..." (golint)
    • Line 1220: warning: comment on exported method Config.EnableImages should be of the form "EnableImages ..." (golint)
    • Line 1225: warning: comment on exported method Config.EnableJavascript should be of the form "EnableJavascript ..." (golint)
    • Line 1230: warning: comment on exported method Config.UseBGRAForOffscreenRendering should be of the form "UseBGRAForOffscreenRendering ..." (golint)
    • Line 1236: warning: comment on exported method Config.DeviceScaleHint should be of the form "DeviceScaleHint ..." (golint)
    • Line 1243: warning: comment on exported method Config.FontFamilyStandard should be of the form "FontFamilyStandard ..." (golint)
    • Line 1256: warning: comment on exported method Config.FontFamilyFixed should be of the form "FontFamilyFixed ..." (golint)
    • Line 1270: warning: comment on exported method Config.FontFamilySerif should be of the form "FontFamilySerif ..." (golint)
    • Line 1283: warning: comment on exported method Config.FontFamilySansSerif should be of the form "FontFamilySansSerif ..." (golint)
    • Line 1296: warning: comment on exported method Config.UserAgent should be of the form "UserAgent ..." (golint)
    • Line 1309: warning: comment on exported method Config.UserStylesheet should be of the form "UserStylesheet ..." (golint)
    • Line 1322: warning: exported type Renderer should have comment or be unexported (golint)
    • Line 1326: warning: comment on exported function NewRenderer should be of the form "NewRenderer ..." (golint)
    • Line 1353: warning: comment on exported method Overlay.View should be of the form "View ..." (golint)
    • Line 1358: warning: comment on exported method Overlay.IsHidden should be of the form "IsHidden ..." (golint)
    • Line 1373: warning: comment on exported method Overlay.HasFocus should be of the form "HasFocus ..." (golint)
    • Line 1378: warning: comment on exported method Overlay.Focus should be of the form "Focus ..." (golint)
    • Line 1383: warning: comment on exported method Overlay.Unfocus should be of the form "Unfocus ..." (golint)
    • Line 1394: warning: comment on exported method Renderer.NewView should be of the form "NewView ..." (golint)
    • Line 1400: warning: receiver name v should be consistent with previous receiver name view for View (golint)
    • Line 1415: warning: comment on exported method View.WriteToPNG should be of the form "WriteToPNG ..." (golint)
    • Line 1416: warning: receiver name v should be consistent with previous receiver name view for View (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!