Preparing report...

Report for github.com/grafana/xk6-browser

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


gocyclo85%

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.

    • xk6-browser/common/frame_session.go
    • Line 172: warning: cyclomatic complexity 22 of function (*FrameSession).initEvents() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 18 of function (*FrameSession).initOptions() is high (> 15) (gocyclo)
    • xk6-browser/common/screenshotter.go
    • Line 268: warning: cyclomatic complexity 19 of function (*screenshotter).screenshotPage() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 17 of function (*screenshotter).screenshotElement() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 17 of function (*screenshotter).screenshot() is high (> 15) (gocyclo)

golint52%

Golint is a linter for Go source code.

    • xk6-browser/testutils/ws.go
    • Line 100: warning: comment on exported function NewWSTestServerWithClosureAbnormal should be of the form "NewWSTestServerWithClosureAbnormal ..." (golint)
    • Line 105: warning: comment on exported function NewWSTestServerWithEcho should be of the form "NewWSTestServerWithEcho ..." (golint)
    • xk6-browser/common/keyboard.go
    • Line 40: warning: exported const ModifierKeyAlt should have comment (or a comment on this block) or be unexported (golint)
    • Line 254: warning: comment on exported method Keyboard.Down should be of the form "Down ..." (golint)
    • Line 263: warning: comment on exported method Keyboard.Press should be of the form "Press ..." (golint)
    • Line 277: warning: comment on exported method Keyboard.InsertText should be of the form "InsertText ..." (golint)
    • Line 286: warning: comment on exported method Keyboard.Type should be of the form "Type ..." (golint)
    • Line 300: warning: comment on exported method Keyboard.Up should be of the form "Up ..." (golint)
    • xk6-browser/common/keyboard_options.go
    • Line 30: warning: exported type KeyboardOptions should have comment or be unexported (golint)
    • Line 34: warning: exported function NewKeyboardOptions should have comment or be unexported (golint)
    • Line 40: warning: exported method KeyboardOptions.Parse should have comment or be unexported (golint)
    • xk6-browser/common/logger.go
    • Line 35: warning: exported type Logger should have comment or be unexported (golint)
    • Line 44: warning: exported function NullLogger should have comment or be unexported (golint)
    • Line 50: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 62: warning: exported method Logger.Debugf should have comment or be unexported (golint)
    • Line 66: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 70: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 74: warning: exported method Logger.Warnf should have comment or be unexported (golint)
    • Line 78: warning: exported method Logger.Logf should have comment or be unexported (golint)
    • xk6-browser/keyboardlayout/common.go
    • Line 28: warning: exported type KeyInput should have comment or be unexported (golint)
    • Line 30: warning: exported type KeyDefinition should have comment or be unexported (golint)
    • Line 41: warning: exported type KeyboardLayout should have comment or be unexported (golint)
    • xk6-browser/testutils/browsertest/utils.go
    • Line 32: warning: exported function AttachFrame should have comment or be unexported (golint)
    • Line 45: warning: exported function DetachFrame should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function RunES6String should be of the form "RunES6String ..." (golint)
    • xk6-browser/common/connection.go
    • Line 60: warning: comment on exported type Connection should be of the form "Connection ..." (with optional leading article) (golint)
    • Line 391: warning: exported method Connection.Close should have comment or be unexported (golint)
    • xk6-browser/common/consts.go
    • Line 26: warning: comment on exported const DefaultLocale should be of the form "DefaultLocale ..." (golint)
    • Line 28: warning: exported const DefaultScreenWidth should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported const LifeCycleNetworkIdleTimeout should be of the form "LifeCycleNetworkIdleTimeout ..." (golint)
    • xk6-browser/common/types.go
    • Line 136: warning: exported type EmulatedSize should have comment or be unexported (golint)
    • Line 141: warning: exported type Geolocation should have comment or be unexported (golint)
    • Line 190: warning: exported type LifecycleEvent should have comment or be unexported (golint)
    • Line 193: warning: exported const LifecycleEventLoad should have comment (or a comment on this block) or be unexported (golint)
    • Line 234: warning: exported type MediaType should have comment or be unexported (golint)
    • Line 237: warning: exported const MediaTypeScreen should have comment (or a comment on this block) or be unexported (golint)
    • Line 241: warning: exported type PollingType should have comment or be unexported (golint)
    • Line 244: warning: exported const PollingRaf should have comment (or a comment on this block) or be unexported (golint)
    • Line 285: warning: exported type Position should have comment or be unexported (golint)
    • Line 290: warning: exported type Rect should have comment or be unexported (golint)
    • Line 340: warning: exported type ResourceTiming should have comment or be unexported (golint)
    • Line 352: warning: comment on exported type Screen should be of the form "Screen ..." (with optional leading article) (golint)
    • Line 358: warning: exported type SelectOption should have comment or be unexported (golint)
    • Line 364: warning: exported type Size should have comment or be unexported (golint)
    • Line 375: warning: exported function NewCredentials should have comment or be unexported (golint)
    • Line 379: warning: exported method Credentials.Parse should have comment or be unexported (golint)
    • Line 395: warning: exported function NewEmulatedSize should have comment or be unexported (golint)
    • Line 402: warning: exported function NewGeolocation should have comment or be unexported (golint)
    • Line 406: warning: exported method Geolocation.Parse should have comment or be unexported (golint)
    • Line 454: warning: exported method Screen.Parse should have comment or be unexported (golint)
    • Line 477: warning: exported method Size.Parse should have comment or be unexported (golint)
    • Line 493: warning: exported method Viewport.Parse should have comment or be unexported (golint)
    • xk6-browser/common/barrier.go
    • Line 29: warning: exported type Barrier should have comment or be unexported (golint)
    • Line 35: warning: exported function NewBarrier should have comment or be unexported (golint)
    • Line 43: warning: exported method Barrier.AddFrameNavigation should have comment or be unexported (golint)
    • Line 62: warning: exported method Barrier.Wait should have comment or be unexported (golint)
    • xk6-browser/common/element_handle.go
    • Line 60: warning: exported type ElementHandleActionFn should have comment or be unexported (golint)
    • Line 61: warning: exported type ElementHandlePointerActionFn should have comment or be unexported (golint)
    • Line 934: warning: exported method ElementHandle.ContentFrame should have comment or be unexported (golint)
    • Line 951: warning: exported method ElementHandle.Dblclick should have comment or be unexported (golint)
    • Line 968: warning: exported method ElementHandle.DispatchEvent should have comment or be unexported (golint)
    • Line 982: warning: exported method ElementHandle.Fill should have comment or be unexported (golint)
    • Line 1079: warning: exported method ElementHandle.InputValue should have comment or be unexported (golint)
    • Line 1196: warning: exported method ElementHandle.Press should have comment or be unexported (golint)
    • Line 1299: warning: exported method ElementHandle.Screenshot should have comment or be unexported (golint)
    • Line 1314: warning: exported method ElementHandle.ScrollIntoViewIfNeeded should have comment or be unexported (golint)
    • Line 1327: warning: exported method ElementHandle.SelectOption should have comment or be unexported (golint)
    • Line 1349: warning: exported method ElementHandle.SelectText should have comment or be unexported (golint)
    • Line 1386: warning: exported method ElementHandle.SetInputFiles should have comment or be unexported (golint)
    • Line 1392: warning: exported method ElementHandle.Tap should have comment or be unexported (golint)
    • Line 1411: warning: exported method ElementHandle.TextContent should have comment or be unexported (golint)
    • Line 1447: warning: exported method ElementHandle.WaitForElementState should have comment or be unexported (golint)
    • Line 1460: warning: exported method ElementHandle.WaitForSelector should have comment or be unexported (golint)
    • xk6-browser/common/mouse_options.go
    • Line 30: warning: exported type MouseClickOptions should have comment or be unexported (golint)
    • Line 36: warning: exported type MouseDblClickOptions should have comment or be unexported (golint)
    • Line 41: warning: exported type MouseDownUpOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type MouseMoveOptions should have comment or be unexported (golint)
    • Line 50: warning: exported function NewMouseClickOptions should have comment or be unexported (golint)
    • Line 58: warning: exported method MouseClickOptions.Parse should have comment or be unexported (golint)
    • Line 76: warning: exported method MouseClickOptions.ToMouseDownUpOptions should have comment or be unexported (golint)
    • Line 83: warning: exported function NewMouseDblClickOptions should have comment or be unexported (golint)
    • Line 90: warning: exported method MouseDblClickOptions.Parse should have comment or be unexported (golint)
    • Line 106: warning: exported method MouseDblClickOptions.ToMouseDownUpOptions should have comment or be unexported (golint)
    • Line 112: warning: exported function NewMouseDownUpOptions should have comment or be unexported (golint)
    • Line 119: warning: exported method MouseDownUpOptions.Parse should have comment or be unexported (golint)
    • Line 135: warning: exported function NewMouseMoveOptions should have comment or be unexported (golint)
    • Line 141: warning: exported method MouseMoveOptions.Parse should have comment or be unexported (golint)
    • xk6-browser/common/page.go
    • Line 284: warning: exported method Page.AddScriptTag should have comment or be unexported (golint)
    • Line 289: warning: exported method Page.AddStyleTag should have comment or be unexported (golint)
    • Line 333: warning: exported method Page.DispatchEvent should have comment or be unexported (golint)
    • Line 337: warning: exported method Page.DragAndDrop should have comment or be unexported (golint)
    • Line 342: warning: exported method Page.EmulateMedia should have comment or be unexported (golint)
    • Line 391: warning: exported method Page.EvaluateHandle should have comment or be unexported (golint)
    • Line 395: warning: exported method Page.ExposeBinding should have comment or be unexported (golint)
    • Line 400: warning: exported method Page.ExposeFunction should have comment or be unexported (golint)
    • Line 405: warning: exported method Page.Fill should have comment or be unexported (golint)
    • Line 409: warning: exported method Page.Focus should have comment or be unexported (golint)
    • Line 413: warning: exported method Page.Frame should have comment or be unexported (golint)
    • Line 424: warning: exported method Page.GetAttribute should have comment or be unexported (golint)
    • Line 428: warning: exported method Page.GoBack should have comment or be unexported (golint)
    • Line 434: warning: exported method Page.GoForward should have comment or be unexported (golint)
    • Line 445: warning: exported method Page.Hover should have comment or be unexported (golint)
    • Line 449: warning: exported method Page.InnerHTML should have comment or be unexported (golint)
    • Line 453: warning: exported method Page.InnerText should have comment or be unexported (golint)
    • Line 457: warning: exported method Page.InputValue should have comment or be unexported (golint)
    • Line 461: warning: exported method Page.IsChecked should have comment or be unexported (golint)
    • Line 465: warning: exported method Page.IsClosed should have comment or be unexported (golint)
    • Line 469: warning: exported method Page.IsDisabled should have comment or be unexported (golint)
    • Line 473: warning: exported method Page.IsEditable should have comment or be unexported (golint)
    • Line 477: warning: exported method Page.IsEnabled should have comment or be unexported (golint)
    • Line 481: warning: exported method Page.IsHidden should have comment or be unexported (golint)
    • Line 485: warning: exported method Page.IsVisible should have comment or be unexported (golint)
    • Line 499: warning: exported method Page.Pause should have comment or be unexported (golint)
    • Line 504: warning: exported method Page.Pdf should have comment or be unexported (golint)
    • Line 510: warning: exported method Page.Press should have comment or be unexported (golint)
    • Line 514: warning: exported method Page.Query should have comment or be unexported (golint)
    • Line 518: warning: exported method Page.QueryAll should have comment or be unexported (golint)
    • Line 566: warning: exported method Page.Route should have comment or be unexported (golint)
    • Line 586: warning: exported method Page.SelectOption should have comment or be unexported (golint)
    • Line 590: warning: exported method Page.SetContent should have comment or be unexported (golint)
    • Line 610: warning: exported method Page.SetInputFiles should have comment or be unexported (golint)
    • Line 629: warning: exported method Page.Tap should have comment or be unexported (golint)
    • Line 633: warning: exported method Page.TextContent should have comment or be unexported (golint)
    • Line 637: warning: exported method Page.Title should have comment or be unexported (golint)
    • Line 643: warning: exported method Page.Type should have comment or be unexported (golint)
    • Line 647: warning: exported method Page.Uncheck should have comment or be unexported (golint)
    • Line 651: warning: exported method Page.Unroute should have comment or be unexported (golint)
    • Line 700: warning: exported method Page.WaitForRequest should have comment or be unexported (golint)
    • Line 706: warning: exported method Page.WaitForResponse should have comment or be unexported (golint)
    • xk6-browser/common/request.go
    • Line 134: warning: exported method Request.AllHeaders should have comment or be unexported (golint)
    • Line 143: warning: exported method Request.Failure should have comment or be unexported (golint)
    • Line 154: warning: exported method Request.HeaderValue should have comment or be unexported (golint)
    • Line 173: warning: exported method Request.HeadersArray should have comment or be unexported (golint)
    • Line 211: warning: exported method Request.RedirectedFrom should have comment or be unexported (golint)
    • Line 217: warning: exported method Request.RedirectedTo should have comment or be unexported (golint)
    • Line 233: warning: exported method Request.Size should have comment or be unexported (golint)
    • Line 240: warning: exported method Request.Timing should have comment or be unexported (golint)
    • xk6-browser/common/response.go
    • Line 160: warning: exported method Response.AllHeaders should have comment or be unexported (golint)
    • Line 215: warning: exported method Response.HeaderValue should have comment or be unexported (golint)
    • Line 225: warning: exported method Response.HeaderValues should have comment or be unexported (golint)
    • Line 254: warning: exported method Response.HeadersArray should have comment or be unexported (golint)
    • Line 294: warning: exported method Response.SecurityDetails should have comment or be unexported (golint)
    • Line 299: warning: comment on exported method Response.ServerAddr should be of the form "ServerAddr ..." (golint)
    • Line 305: warning: exported method Response.Size should have comment or be unexported (golint)
    • xk6-browser/chromium/browser_type.go
    • Line 37: warning: exported type BrowserType should have comment or be unexported (golint)
    • Line 44: warning: exported function NewBrowserType should have comment or be unexported (golint)
    • Line 63: warning: exported method BrowserType.Connect should have comment or be unexported (golint)
    • Line 68: warning: exported method BrowserType.ExecutablePath should have comment or be unexported (golint)
    • Line 139: warning: exported method BrowserType.LaunchPersistentContext should have comment or be unexported (golint)
    • Line 145: warning: exported method BrowserType.Name should have comment or be unexported (golint)
    • xk6-browser/common/element_handle_options.go
    • Line 32: warning: exported type ElementHandleBaseOptions should have comment or be unexported (golint)
    • Line 38: warning: exported type ElementHandleBasePointerOptions should have comment or be unexported (golint)
    • Line 44: warning: exported type ElementHandleCheckOptions should have comment or be unexported (golint)
    • Line 48: warning: exported type ElementHandleClickOptions should have comment or be unexported (golint)
    • Line 56: warning: exported type ElementHandleDblclickOptions should have comment or be unexported (golint)
    • Line 63: warning: exported type ElementHandleHoverOptions should have comment or be unexported (golint)
    • Line 68: warning: exported type ElementHandlePressOptions should have comment or be unexported (golint)
    • Line 74: warning: exported type ElementHandleScreenshotOptions should have comment or be unexported (golint)
    • Line 82: warning: exported type ElementHandleSetCheckedOptions should have comment or be unexported (golint)
    • Line 87: warning: exported type ElementHandleTapOptions should have comment or be unexported (golint)
    • Line 92: warning: exported type ElementHandleTypeOptions should have comment or be unexported (golint)
    • Line 98: warning: exported type ElementHandleWaitForElementStateOptions should have comment or be unexported (golint)
    • Line 102: warning: exported function NewElementHandleBaseOptions should have comment or be unexported (golint)
    • Line 110: warning: exported method ElementHandleBaseOptions.Parse should have comment or be unexported (golint)
    • Line 128: warning: exported function NewElementHandleBasePointerOptions should have comment or be unexported (golint)
    • Line 136: warning: exported method ElementHandleBasePointerOptions.Parse should have comment or be unexported (golint)
    • Line 160: warning: exported function NewElementHandleCheckOptions should have comment or be unexported (golint)
    • Line 166: warning: exported method ElementHandleCheckOptions.Parse should have comment or be unexported (golint)
    • Line 170: warning: exported function NewElementHandleClickOptions should have comment or be unexported (golint)
    • Line 180: warning: exported method ElementHandleClickOptions.Parse should have comment or be unexported (golint)
    • Line 207: warning: exported method ElementHandleClickOptions.ToMouseClickOptions should have comment or be unexported (golint)
    • Line 215: warning: exported function NewElementHandleDblclickOptions should have comment or be unexported (golint)
    • Line 224: warning: exported method ElementHandleDblclickOptions.Parse should have comment or be unexported (golint)
    • Line 249: warning: exported method ElementHandleDblclickOptions.ToMouseClickOptions should have comment or be unexported (golint)
    • Line 257: warning: exported function NewElementHandleHoverOptions should have comment or be unexported (golint)
    • Line 264: warning: exported method ElementHandleHoverOptions.Parse should have comment or be unexported (golint)
    • Line 285: warning: exported function NewElementHandlePressOptions should have comment or be unexported (golint)
    • Line 293: warning: exported method ElementHandlePressOptions.Parse should have comment or be unexported (golint)
    • Line 311: warning: exported method ElementHandlePressOptions.ToBaseOptions should have comment or be unexported (golint)
    • Line 319: warning: exported function NewElementHandleScreenshotOptions should have comment or be unexported (golint)
    • Line 329: warning: exported method ElementHandleScreenshotOptions.Parse should have comment or be unexported (golint)
    • Line 362: warning: exported function NewElementHandleSetCheckedOptions should have comment or be unexported (golint)
    • Line 369: warning: exported method ElementHandleSetCheckedOptions.Parse should have comment or be unexported (golint)
    • Line 388: warning: exported function NewElementHandleTapOptions should have comment or be unexported (golint)
    • Line 395: warning: exported method ElementHandleTapOptions.Parse should have comment or be unexported (golint)
    • Line 416: warning: exported function NewElementHandleTypeOptions should have comment or be unexported (golint)
    • Line 424: warning: exported method ElementHandleTypeOptions.Parse should have comment or be unexported (golint)
    • Line 442: warning: exported method ElementHandleTypeOptions.ToBaseOptions should have comment or be unexported (golint)
    • Line 450: warning: exported function NewElementHandleWaitForElementStateOptions should have comment or be unexported (golint)
    • Line 456: warning: exported method ElementHandleWaitForElementStateOptions.Parse should have comment or be unexported (golint)
    • xk6-browser/common/errors.go
    • Line 48: warning: exported type BigIntParseError should have comment or be unexported (golint)
    • Line 71: warning: exported type UnserializableValueError should have comment or be unexported (golint)
    • xk6-browser/testutils/cdp.go
    • Line 37: warning: exported const DEFAULT_CDP_SESSION_ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported var DEFAULT_CDP_TARGET_ATTACHED_TO_TARGET_MSG should have comment or be unexported (golint)
    • Line 56: warning: exported var DEFAULT_CDP_TARGET_ATTACH_TO_TARGET_RESPONSE should have comment or be unexported (golint)
    • Line 117: warning: comment on exported function CDPDefaultHandler should be of the form "CDPDefaultHandler ..." (golint)
    • xk6-browser/common/context.go
    • Line 32: warning: exported function WithHooks should have comment or be unexported (golint)
    • Line 36: warning: exported function GetHooks should have comment or be unexported (golint)
    • Line 44: warning: exported function WithLaunchOptions should have comment or be unexported (golint)
    • Line 48: warning: exported function GetLaunchOptions should have comment or be unexported (golint)
    • xk6-browser/tests/html_files.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 30: warning: comment on exported var HTMLEmptyPage should be of the form "HTMLEmptyPage ..." (golint)
    • Line 33: warning: comment on exported var HTMLWaitUntilPage should be of the form "HTMLWaitUntilPage ..." (golint)
    • xk6-browser/common/frame.go
    • Line 90: warning: exported type DocumentInfo should have comment or be unexported (golint)
    • Line 515: warning: exported method Frame.AddScriptTag should have comment or be unexported (golint)
    • Line 521: warning: exported method Frame.AddStyleTag should have comment or be unexported (golint)
    • Line 615: warning: exported method Frame.DispatchEvent should have comment or be unexported (golint)
    • Line 658: warning: exported method Frame.Fill should have comment or be unexported (golint)
    • Line 697: warning: exported method Frame.FrameElement should have comment or be unexported (golint)
    • Line 706: warning: exported method Frame.GetAttribute should have comment or be unexported (golint)
    • Line 754: warning: exported method Frame.InnerHTML should have comment or be unexported (golint)
    • Line 774: warning: exported method Frame.InnerText should have comment or be unexported (golint)
    • Line 794: warning: exported method Frame.InputValue should have comment or be unexported (golint)
    • Line 814: warning: exported method Frame.IsChecked should have comment or be unexported (golint)
    • Line 843: warning: exported method Frame.IsDisabled should have comment or be unexported (golint)
    • Line 867: warning: exported method Frame.IsEditable should have comment or be unexported (golint)
    • Line 891: warning: exported method Frame.IsEnabled should have comment or be unexported (golint)
    • Line 915: warning: exported method Frame.IsHidden should have comment or be unexported (golint)
    • Line 939: warning: exported method Frame.IsVisible should have comment or be unexported (golint)
    • Line 993: warning: exported method Frame.QueryAll should have comment or be unexported (golint)
    • Line 1016: warning: exported method Frame.Press should have comment or be unexported (golint)
    • Line 1035: warning: exported method Frame.SelectOption should have comment or be unexported (golint)
    • Line 1090: warning: exported method Frame.SetInputFiles should have comment or be unexported (golint)
    • Line 1096: warning: exported method Frame.Tap should have comment or be unexported (golint)
    • Line 1116: warning: exported method Frame.TextContent should have comment or be unexported (golint)
    • Line 1136: warning: exported method Frame.Title should have comment or be unexported (golint)
    • Line 1141: warning: exported method Frame.Type should have comment or be unexported (golint)
    • Line 1160: warning: exported method Frame.Uncheck should have comment or be unexported (golint)
    • xk6-browser/common/selectors.go
    • Line 51: warning: exported type SelectorPart should have comment or be unexported (golint)
    • Line 56: warning: exported type Selector should have comment or be unexported (golint)
    • Line 66: warning: exported function NewSelector should have comment or be unexported (golint)
    • xk6-browser/common/hooks.go
    • Line 29: warning: exported type HookID should have comment or be unexported (golint)
    • Line 32: warning: exported const HookApplySlowMo should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Hook should have comment or be unexported (golint)
    • Line 37: warning: exported type Hooks should have comment or be unexported (golint)
    • Line 63: warning: exported function NewHooks should have comment or be unexported (golint)
    • Line 75: warning: exported method Hooks.Get should have comment or be unexported (golint)
    • Line 81: warning: exported method Hooks.Register should have comment or be unexported (golint)
    • xk6-browser/common/browser.go
    • Line 47: warning: exported const BrowserStateOpen should have comment (or a comment on this block) or be unexported (golint)
    • Line 343: warning: exported method Browser.IsConnected should have comment or be unexported (golint)
    • xk6-browser/common/browser_context.go
    • Line 75: warning: exported method BrowserContext.AddCookies should have comment or be unexported (golint)
    • Line 148: warning: exported method BrowserContext.Cookies should have comment or be unexported (golint)
    • Line 154: warning: exported method BrowserContext.ExposeBinding should have comment or be unexported (golint)
    • Line 159: warning: exported method BrowserContext.ExposeFunction should have comment or be unexported (golint)
    • Line 233: warning: exported method BrowserContext.Route should have comment or be unexported (golint)
    • Line 248: warning: exported method BrowserContext.SetExtraHTTPHeaders should have comment or be unexported (golint)
    • Line 291: warning: exported method BrowserContext.StorageState should have comment or be unexported (golint)
    • Line 296: warning: exported method BrowserContext.Unroute should have comment or be unexported (golint)
    • Line 301: warning: exported method BrowserContext.WaitForEvent should have comment or be unexported (golint)
    • xk6-browser/common/event_emitter.go
    • Line 31: warning: comment on exported const EventBrowserDisconnected should be of the form "EventBrowserDisconnected ..." (golint)
    • Line 34: warning: comment on exported const EventBrowserContextClose should be of the form "EventBrowserContextClose ..." (golint)
    • Line 36: warning: exported const EventBrowserContextPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported const EventConnectionClose should be of the form "EventConnectionClose ..." (golint)
    • Line 41: warning: comment on exported const EventFrameNavigation should be of the form "EventFrameNavigation ..." (golint)
    • Line 46: warning: comment on exported const EventPageClose should be of the form "EventPageClose ..." (golint)
    • Line 67: warning: comment on exported const EventSessionClosed should be of the form "EventSessionClosed ..." (golint)
    • Line 70: warning: comment on exported const EventWorkerClose should be of the form "EventWorkerClose ..." (golint)
    • Line 80: warning: exported type NavigationEvent should have comment or be unexported (golint)
    • xk6-browser/common/frame_options.go
    • Line 33: warning: exported type FrameBaseOptions should have comment or be unexported (golint)
    • Line 38: warning: exported type FrameCheckOptions should have comment or be unexported (golint)
    • Line 43: warning: exported type FrameClickOptions should have comment or be unexported (golint)
    • Line 48: warning: exported type FrameDblclickOptions should have comment or be unexported (golint)
    • Line 53: warning: exported type FrameFillOptions should have comment or be unexported (golint)
    • Line 58: warning: exported type FrameGotoOptions should have comment or be unexported (golint)
    • Line 64: warning: exported type FrameHoverOptions should have comment or be unexported (golint)
    • Line 69: warning: exported type FrameInnerHTMLOptions should have comment or be unexported (golint)
    • Line 73: warning: exported type FrameInnerTextOptions should have comment or be unexported (golint)
    • Line 77: warning: exported type FrameInputValueOptions should have comment or be unexported (golint)
    • Line 81: warning: exported type FrameIsCheckedOptions should have comment or be unexported (golint)
    • Line 85: warning: exported type FrameIsDisabledOptions should have comment or be unexported (golint)
    • Line 89: warning: exported type FrameIsEditableOptions should have comment or be unexported (golint)
    • Line 93: warning: exported type FrameIsEnabledOptions should have comment or be unexported (golint)
    • Line 97: warning: exported type FrameIsHiddenOptions should have comment or be unexported (golint)
    • Line 101: warning: exported type FrameIsVisibleOptions should have comment or be unexported (golint)
    • Line 105: warning: exported type FramePressOptions should have comment or be unexported (golint)
    • Line 110: warning: exported type FrameSelectOptionOptions should have comment or be unexported (golint)
    • Line 115: warning: exported type FrameSetContentOptions should have comment or be unexported (golint)
    • Line 120: warning: exported type FrameTapOptions should have comment or be unexported (golint)
    • Line 126: warning: exported type FrameTextContentOptions should have comment or be unexported (golint)
    • Line 130: warning: exported type FrameTypeOptions should have comment or be unexported (golint)
    • Line 135: warning: exported type FrameUncheckOptions should have comment or be unexported (golint)
    • Line 140: warning: exported type FrameWaitForFunctionOptions should have comment or be unexported (golint)
    • Line 146: warning: exported type FrameWaitForLoadStateOptions should have comment or be unexported (golint)
    • Line 150: warning: exported type FrameWaitForNavigationOptions should have comment or be unexported (golint)
    • Line 156: warning: exported type FrameWaitForSelectorOptions should have comment or be unexported (golint)
    • Line 162: warning: exported function NewFrameBaseOptions should have comment or be unexported (golint)
    • Line 169: warning: exported method FrameBaseOptions.Parse should have comment or be unexported (golint)
    • Line 185: warning: exported function NewFrameCheckOptions should have comment or be unexported (golint)
    • Line 192: warning: exported method FrameCheckOptions.Parse should have comment or be unexported (golint)
    • Line 209: warning: exported function NewFrameClickOptions should have comment or be unexported (golint)
    • Line 216: warning: exported method FrameClickOptions.Parse should have comment or be unexported (golint)
    • Line 233: warning: exported function NewFrameDblClickOptions should have comment or be unexported (golint)
    • Line 240: warning: exported method FrameDblclickOptions.Parse should have comment or be unexported (golint)
    • Line 257: warning: exported function NewFrameFillOptions should have comment or be unexported (golint)
    • Line 264: warning: exported method FrameFillOptions.Parse should have comment or be unexported (golint)
    • Line 281: warning: exported function NewFrameGotoOptions should have comment or be unexported (golint)
    • Line 289: warning: exported method FrameGotoOptions.Parse should have comment or be unexported (golint)
    • Line 312: warning: exported function NewFrameHoverOptions should have comment or be unexported (golint)
    • Line 319: warning: exported method FrameHoverOptions.Parse should have comment or be unexported (golint)
    • Line 336: warning: exported function NewFrameInnerHTMLOptions should have comment or be unexported (golint)
    • Line 342: warning: exported method FrameInnerHTMLOptions.Parse should have comment or be unexported (golint)
    • Line 349: warning: exported function NewFrameInnerTextOptions should have comment or be unexported (golint)
    • Line 355: warning: exported method FrameInnerTextOptions.Parse should have comment or be unexported (golint)
    • Line 362: warning: exported function NewFrameInputValueOptions should have comment or be unexported (golint)
    • Line 368: warning: exported method FrameInputValueOptions.Parse should have comment or be unexported (golint)
    • Line 375: warning: exported function NewFrameIsCheckedOptions should have comment or be unexported (golint)
    • Line 381: warning: exported method FrameIsCheckedOptions.Parse should have comment or be unexported (golint)
    • Line 388: warning: exported function NewFrameIsDisabledOptions should have comment or be unexported (golint)
    • Line 394: warning: exported method FrameIsDisabledOptions.Parse should have comment or be unexported (golint)
    • Line 401: warning: exported function NewFrameIsEditableOptions should have comment or be unexported (golint)
    • Line 407: warning: exported method FrameIsEditableOptions.Parse should have comment or be unexported (golint)
    • Line 414: warning: exported function NewFrameIsEnabledOptions should have comment or be unexported (golint)
    • Line 420: warning: exported method FrameIsEnabledOptions.Parse should have comment or be unexported (golint)
    • Line 427: warning: exported function NewFrameIsHiddenOptions should have comment or be unexported (golint)
    • Line 433: warning: exported method FrameIsHiddenOptions.Parse should have comment or be unexported (golint)
    • Line 440: warning: exported function NewFrameIsVisibleOptions should have comment or be unexported (golint)
    • Line 446: warning: exported method FrameIsVisibleOptions.Parse should have comment or be unexported (golint)
    • Line 453: warning: exported function NewFramePressOptions should have comment or be unexported (golint)
    • Line 460: warning: exported method FramePressOptions.ToKeyboardOptions should have comment or be unexported (golint)
    • Line 466: warning: exported function NewFrameSelectOptionOptions should have comment or be unexported (golint)
    • Line 473: warning: exported method FrameSelectOptionOptions.Parse should have comment or be unexported (golint)
    • Line 490: warning: exported function NewFrameSetContentOptions should have comment or be unexported (golint)
    • Line 497: warning: exported method FrameSetContentOptions.Parse should have comment or be unexported (golint)
    • Line 520: warning: exported function NewFrameTapOptions should have comment or be unexported (golint)
    • Line 528: warning: exported method FrameTapOptions.Parse should have comment or be unexported (golint)
    • Line 551: warning: exported function NewFrameTextContentOptions should have comment or be unexported (golint)
    • Line 557: warning: exported method FrameTextContentOptions.Parse should have comment or be unexported (golint)
    • Line 564: warning: exported function NewFrameTypeOptions should have comment or be unexported (golint)
    • Line 571: warning: exported method FrameTypeOptions.ToKeyboardOptions should have comment or be unexported (golint)
    • Line 577: warning: exported function NewFrameUncheckOptions should have comment or be unexported (golint)
    • Line 584: warning: exported method FrameUncheckOptions.Parse should have comment or be unexported (golint)
    • Line 601: warning: exported function NewFrameWaitForFunctionOptions should have comment or be unexported (golint)
    • Line 609: warning: exported method FrameWaitForFunctionOptions.Parse should have comment or be unexported (golint)
    • Line 633: warning: exported function NewFrameWaitForLoadStateOptions should have comment or be unexported (golint)
    • Line 639: warning: exported method FrameWaitForLoadStateOptions.Parse should have comment or be unexported (golint)
    • Line 653: warning: exported function NewFrameWaitForNavigationOptions should have comment or be unexported (golint)
    • Line 661: warning: exported method FrameWaitForNavigationOptions.Parse should have comment or be unexported (golint)
    • Line 684: warning: exported function NewFrameWaitForSelectorOptions should have comment or be unexported (golint)
    • Line 692: warning: exported method FrameWaitForSelectorOptions.Parse should have comment or be unexported (golint)
    • xk6-browser/common/frame_session.go
    • Line 51: warning: comment on exported type FrameSession should be of the form "FrameSession ..." (with optional leading article) (golint)
    • Line 81: warning: exported function NewFrameSession should have comment or be unexported (golint)
    • xk6-browser/common/launch.go
    • Line 32: warning: exported type ProxyOptions should have comment or be unexported (golint)
    • Line 60: warning: exported function NewLaunchOptions should have comment or be unexported (golint)
    • xk6-browser/common/page_options.go
    • Line 34: warning: exported type PageEmulateMediaOptions should have comment or be unexported (golint)
    • Line 40: warning: exported type PageReloadOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type PageScreenshotOptions should have comment or be unexported (golint)
    • Line 54: warning: exported function NewPageEmulateMediaOptions should have comment or be unexported (golint)
    • Line 62: warning: exported method PageEmulateMediaOptions.Parse should have comment or be unexported (golint)
    • Line 80: warning: exported function NewPageReloadOptions should have comment or be unexported (golint)
    • Line 87: warning: exported method PageReloadOptions.Parse should have comment or be unexported (golint)
    • Line 108: warning: exported function NewPageScreenshotOptions should have comment or be unexported (golint)
    • Line 119: warning: exported method PageScreenshotOptions.Parse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words