Preparing report...

Report for github.com/k6io/k6

A+    Excellent!    Found 71 issues across 310 files

Tweet

gofmt98%

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


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!


golint87%

Golint is a linter for Go source code.

    • k6/js/modules/k6/html/serialize.go
    • Line 30: warning: exported type FormValue should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method Selection.SerializeArray should be of the form "SerializeArray ..." (golint)
    • Line 70: warning: exported method Selection.SerializeObject should have comment or be unexported (golint)
    • Line 81: warning: exported method Selection.Serialize should have comment or be unexported (golint)
    • k6/js/modules/k6/http/http.go
    • Line 33: warning: exported const HTTP_METHOD_GET should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: comment on exported type HTTP should be of the form "HTTP ..." (with optional leading article) (golint)
    • k6/lib/models.go
    • Line 38: warning: comment on exported const GroupSeparator should be of the form "GroupSeparator ..." (golint)
    • Line 41: warning: comment on exported var ErrNameContainsGroupSeparator should be of the form "ErrNameContainsGroupSeparator ..." (golint)
    • Line 57: warning: comment on exported method Stage.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 67: warning: exported method Stage.MarshalJSON should have comment or be unexported (golint)
    • Line 71: warning: exported method Stage.UnmarshalText should have comment or be unexported (golint)
    • Line 122: warning: comment on exported function NewGroup should be of the form "NewGroup ..." (golint)
    • Line 210: warning: comment on exported function NewCheck should be of the form "NewCheck ..." (golint)
    • k6/cloudapi/api.go
    • Line 33: warning: exported type ResultStatus should have comment or be unexported (golint)
    • Line 36: warning: exported const ResultStatusPassed should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ThresholdResult should have comment or be unexported (golint)
    • Line 42: warning: exported type TestRun should have comment or be unexported (golint)
    • Line 51: warning: exported type CreateTestRunResponse should have comment or be unexported (golint)
    • Line 56: warning: exported type TestProgressResponse should have comment or be unexported (golint)
    • Line 63: warning: exported type LoginResponse should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.CreateTestRun should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.StartCloudTestRun should have comment or be unexported (golint)
    • Line 130: warning: exported method Client.TestFinished should have comment or be unexported (golint)
    • Line 156: warning: exported method Client.GetTestProgress should have comment or be unexported (golint)
    • Line 172: warning: exported method Client.StopCloudTestRun should have comment or be unexported (golint)
    • Line 183: warning: exported method Client.ValidateOptions should have comment or be unexported (golint)
    • Line 200: warning: exported method Client.Login should have comment or be unexported (golint)
    • k6/api/common/context.go
    • Line 29: warning: exported type ContextKey should have comment or be unexported (golint)
    • Line 33: warning: exported function WithEngine should have comment or be unexported (golint)
    • Line 37: warning: exported function GetEngine should have comment or be unexported (golint)
    • k6/api/v1/metric.go
    • Line 33: warning: exported type NullMetricType should have comment or be unexported (golint)
    • Line 38: warning: exported method NullMetricType.MarshalJSON should have comment or be unexported (golint)
    • Line 45: warning: exported method NullMetricType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 54: warning: exported type NullValueType should have comment or be unexported (golint)
    • Line 59: warning: exported method NullValueType.MarshalJSON should have comment or be unexported (golint)
    • Line 66: warning: exported method NullValueType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 75: warning: exported type Metric should have comment or be unexported (golint)
    • Line 85: warning: exported function NewMetric should have comment or be unexported (golint)
    • Line 95: warning: exported method Metric.GetID should have comment or be unexported (golint)
    • Line 99: warning: exported method Metric.SetID should have comment or be unexported (golint)
    • k6/js/modules/k6/html/elements.go
    • Line 98: warning: exported type HrefElement should have comment or be unexported (golint)
    • Line 99: warning: exported type MediaElement should have comment or be unexported (golint)
    • Line 100: warning: exported type FormFieldElement should have comment or be unexported (golint)
    • Line 101: warning: exported type ModElement should have comment or be unexported (golint)
    • Line 102: warning: exported type TableSectionElement should have comment or be unexported (golint)
    • Line 103: warning: exported type TableCellElement should have comment or be unexported (golint)
    • Line 105: warning: exported type AnchorElement should have comment or be unexported (golint)
    • Line 106: warning: exported type AreaElement should have comment or be unexported (golint)
    • Line 107: warning: exported type AudioElement should have comment or be unexported (golint)
    • Line 108: warning: exported type BaseElement should have comment or be unexported (golint)
    • Line 109: warning: exported type ButtonElement should have comment or be unexported (golint)
    • Line 110: warning: exported type CanvasElement should have comment or be unexported (golint)
    • Line 111: warning: exported type DataElement should have comment or be unexported (golint)
    • Line 112: warning: exported type DataListElement should have comment or be unexported (golint)
    • Line 113: warning: exported type DelElement should have comment or be unexported (golint)
    • Line 114: warning: exported type InsElement should have comment or be unexported (golint)
    • Line 115: warning: exported type EmbedElement should have comment or be unexported (golint)
    • Line 116: warning: exported type FieldSetElement should have comment or be unexported (golint)
    • Line 117: warning: exported type FormElement should have comment or be unexported (golint)
    • Line 118: warning: exported type IFrameElement should have comment or be unexported (golint)
    • Line 119: warning: exported type ImageElement should have comment or be unexported (golint)
    • Line 120: warning: exported type InputElement should have comment or be unexported (golint)
    • Line 121: warning: exported type KeygenElement should have comment or be unexported (golint)
    • Line 122: warning: exported type LabelElement should have comment or be unexported (golint)
    • Line 123: warning: exported type LegendElement should have comment or be unexported (golint)
    • Line 124: warning: exported type LiElement should have comment or be unexported (golint)
    • Line 125: warning: exported type LinkElement should have comment or be unexported (golint)
    • Line 126: warning: exported type MapElement should have comment or be unexported (golint)
    • Line 127: warning: exported type MetaElement should have comment or be unexported (golint)
    • Line 128: warning: exported type MeterElement should have comment or be unexported (golint)
    • Line 129: warning: exported type ObjectElement should have comment or be unexported (golint)
    • Line 130: warning: exported type OListElement should have comment or be unexported (golint)
    • Line 131: warning: exported type OptGroupElement should have comment or be unexported (golint)
    • Line 132: warning: exported type OptionElement should have comment or be unexported (golint)
    • Line 133: warning: exported type OutputElement should have comment or be unexported (golint)
    • Line 134: warning: exported type ParamElement should have comment or be unexported (golint)
    • Line 135: warning: exported type PreElement should have comment or be unexported (golint)
    • Line 136: warning: exported type ProgressElement should have comment or be unexported (golint)
    • Line 137: warning: exported type QuoteElement should have comment or be unexported (golint)
    • Line 138: warning: exported type ScriptElement should have comment or be unexported (golint)
    • Line 139: warning: exported type SelectElement should have comment or be unexported (golint)
    • Line 140: warning: exported type SourceElement should have comment or be unexported (golint)
    • Line 141: warning: exported type StyleElement should have comment or be unexported (golint)
    • Line 142: warning: exported type TableElement should have comment or be unexported (golint)
    • Line 143: warning: exported type TableHeadElement should have comment or be unexported (golint)
    • Line 144: warning: exported type TableFootElement should have comment or be unexported (golint)
    • Line 145: warning: exported type TableBodyElement should have comment or be unexported (golint)
    • Line 146: warning: exported type TableRowElement should have comment or be unexported (golint)
    • Line 147: warning: exported type TableColElement should have comment or be unexported (golint)
    • Line 148: warning: exported type TableDataCellElement should have comment or be unexported (golint)
    • Line 149: warning: exported type TableHeaderCellElement should have comment or be unexported (golint)
    • Line 150: warning: exported type TextAreaElement should have comment or be unexported (golint)
    • Line 151: warning: exported type TimeElement should have comment or be unexported (golint)
    • Line 152: warning: exported type TitleElement should have comment or be unexported (golint)
    • Line 153: warning: exported type TrackElement should have comment or be unexported (golint)
    • Line 154: warning: exported type UListElement should have comment or be unexported (golint)
    • Line 155: warning: exported type VideoElement should have comment or be unexported (golint)
    • Line 165: warning: exported method HrefElement.Hash should have comment or be unexported (golint)
    • Line 173: warning: exported method HrefElement.Host should have comment or be unexported (golint)
    • Line 192: warning: exported method HrefElement.Hostname should have comment or be unexported (golint)
    • Line 206: warning: exported method HrefElement.Port should have comment or be unexported (golint)
    • Line 220: warning: exported method HrefElement.Username should have comment or be unexported (golint)
    • Line 228: warning: exported method HrefElement.Password should have comment or be unexported (golint)
    • Line 242: warning: comment on exported method HrefElement.Origin should be of the form "Origin ..." (golint)
    • Line 257: warning: exported method HrefElement.Pathname should have comment or be unexported (golint)
    • Line 261: warning: exported method HrefElement.Protocol should have comment or be unexported (golint)
    • Line 269: warning: exported method HrefElement.RelList should have comment or be unexported (golint)
    • Line 273: warning: exported method HrefElement.Search should have comment or be unexported (golint)
    • Line 281: warning: exported method HrefElement.Text should have comment or be unexported (golint)
    • Line 285: warning: exported method FormFieldElement.Form should have comment or be unexported (golint)
    • Line 307: warning: exported method FormFieldElement.FormAction should have comment or be unexported (golint)
    • Line 325: warning: comment on exported method FormFieldElement.FormEnctype should be of the form "FormEnctype ..." (golint)
    • Line 339: warning: exported method FormFieldElement.FormMethod should have comment or be unexported (golint)
    • Line 350: warning: exported method FormFieldElement.FormNoValidate should have comment or be unexported (golint)
    • Line 355: warning: exported method FormFieldElement.FormTarget should have comment or be unexported (golint)
    • Line 360: warning: exported method FormFieldElement.Labels should have comment or be unexported (golint)
    • Line 364: warning: exported method FormFieldElement.Name should have comment or be unexported (golint)
    • Line 368: warning: exported method ButtonElement.Value should have comment or be unexported (golint)
    • Line 372: warning: exported method CanvasElement.Width should have comment or be unexported (golint)
    • Line 376: warning: exported method CanvasElement.Height should have comment or be unexported (golint)
    • Line 380: warning: exported method DataListElement.Options should have comment or be unexported (golint)
    • Line 384: warning: exported method FieldSetElement.Form should have comment or be unexported (golint)
    • Line 392: warning: exported method FieldSetElement.Type should have comment or be unexported (golint)
    • Line 396: warning: exported method FieldSetElement.Elements should have comment or be unexported (golint)
    • Line 400: warning: exported method FieldSetElement.Validity should have comment or be unexported (golint)
    • Line 404: warning: exported method FormElement.Elements should have comment or be unexported (golint)
    • Line 408: warning: exported method FormElement.Length should have comment or be unexported (golint)
    • Line 412: warning: exported method FormElement.Method should have comment or be unexported (golint)
    • Line 420: warning: comment on exported method InputElement.List should be of the form "List ..." (golint)
    • Line 449: warning: exported method KeygenElement.Form should have comment or be unexported (golint)
    • Line 453: warning: exported method KeygenElement.Labels should have comment or be unexported (golint)
    • Line 457: warning: exported method LabelElement.Control should have comment or be unexported (golint)
    • Line 471: warning: exported method LabelElement.Form should have comment or be unexported (golint)
    • Line 475: warning: exported method LegendElement.Form should have comment or be unexported (golint)
    • Line 479: warning: exported method LinkElement.RelList should have comment or be unexported (golint)
    • Line 483: warning: exported method MapElement.Areas should have comment or be unexported (golint)
    • Line 487: warning: exported method MapElement.Images should have comment or be unexported (golint)
    • Line 498: warning: exported method MeterElement.Labels should have comment or be unexported (golint)
    • Line 502: warning: exported method ObjectElement.Form should have comment or be unexported (golint)
    • Line 506: warning: exported method OptionElement.Disabled should have comment or be unexported (golint)
    • Line 520: warning: exported method OptionElement.Form should have comment or be unexported (golint)
    • Line 540: warning: exported method OptionElement.Index should have comment or be unexported (golint)
    • Line 549: warning: exported method OptionElement.Label should have comment or be unexported (golint)
    • Line 557: warning: exported method OptionElement.Text should have comment or be unexported (golint)
    • Line 561: warning: exported method OptionElement.Value should have comment or be unexported (golint)
    • Line 565: warning: exported method OutputElement.Form should have comment or be unexported (golint)
    • Line 569: warning: exported method OutputElement.Labels should have comment or be unexported (golint)
    • Line 573: warning: exported method OutputElement.Value should have comment or be unexported (golint)
    • Line 577: warning: exported method OutputElement.DefaultValue should have comment or be unexported (golint)
    • Line 581: warning: exported method ProgressElement.Max should have comment or be unexported (golint)
    • Line 609: warning: exported method ProgressElement.Value should have comment or be unexported (golint)
    • Line 613: warning: exported method ProgressElement.Position should have comment or be unexported (golint)
    • Line 617: warning: exported method ProgressElement.Labels should have comment or be unexported (golint)
    • Line 621: warning: exported method ScriptElement.Text should have comment or be unexported (golint)
    • Line 625: warning: exported method SelectElement.Form should have comment or be unexported (golint)
    • Line 629: warning: exported method SelectElement.Labels should have comment or be unexported (golint)
    • Line 633: warning: exported method SelectElement.Length should have comment or be unexported (golint)
    • Line 637: warning: exported method SelectElement.Options should have comment or be unexported (golint)
    • Line 641: warning: exported method SelectElement.SelectedIndex should have comment or be unexported (golint)
    • Line 649: warning: exported method SelectElement.SelectedOptions should have comment or be unexported (golint)
    • Line 653: warning: exported method SelectElement.Size should have comment or be unexported (golint)
    • Line 656: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 661: warning: exported method SelectElement.Type should have comment or be unexported (golint)
    • Line 664: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 669: warning: exported method SelectElement.Value should have comment or be unexported (golint)
    • Line 677: warning: exported method StyleElement.Type should have comment or be unexported (golint)
    • Line 693: warning: exported method TableElement.Caption should have comment or be unexported (golint)
    • Line 697: warning: exported method TableElement.THead should have comment or be unexported (golint)
    • Line 701: warning: exported method TableElement.TFoot should have comment or be unexported (golint)
    • Line 705: warning: exported method TableElement.Rows should have comment or be unexported (golint)
    • Line 709: warning: exported method TableElement.TBodies should have comment or be unexported (golint)
    • Line 713: warning: exported method TableSectionElement.Rows should have comment or be unexported (golint)
    • Line 717: warning: exported method TableCellElement.CellIndex should have comment or be unexported (golint)
    • Line 725: warning: exported method TableRowElement.Cells should have comment or be unexported (golint)
    • Line 729: warning: exported method TableRowElement.RowIndex should have comment or be unexported (golint)
    • Line 737: warning: exported method TableRowElement.SectionRowIndex should have comment or be unexported (golint)
    • Line 745: warning: exported method TextAreaElement.Form should have comment or be unexported (golint)
    • Line 749: warning: exported method TextAreaElement.Length should have comment or be unexported (golint)
    • Line 753: warning: exported method TextAreaElement.Labels should have comment or be unexported (golint)
    • Line 757: warning: exported method TableColElement.Span should have comment or be unexported (golint)
    • Line 765: warning: exported method MediaElement.TextTracks should have comment or be unexported (golint)
    • Line 769: warning: exported method TitleElement.Text should have comment or be unexported (golint)
    • k6/js/modules/k6/ws/ws.go
    • Line 48: warning: exported type WS should have comment or be unexported (golint)
    • Line 50: warning: exported type Socket should have comment or be unexported (golint)
    • Line 65: warning: exported type WSHTTPResponse should have comment or be unexported (golint)
    • Line 80: warning: exported function New should have comment or be unexported (golint)
    • Line 84: warning: exported method WS.Connect should have comment or be unexported (golint)
    • Line 327: warning: exported method Socket.On should have comment or be unexported (golint)
    • Line 388: warning: exported method Socket.Ping should have comment or be unexported (golint)
    • Line 485: warning: exported method Socket.Close should have comment or be unexported (golint)
    • k6/js/modules/k6/html/element.go
    • Line 35: warning: exported const ElementNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type Element should have comment or be unexported (golint)
    • Line 47: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 184: warning: exported method Attribute.Prefix should have comment or be unexported (golint)
    • Line 188: warning: exported method Attribute.NamespaceURI should have comment or be unexported (golint)
    • Line 192: warning: exported method Attribute.LocalName should have comment or be unexported (golint)
    • Line 196: warning: exported method Element.GetAttribute should have comment or be unexported (golint)
    • Line 200: warning: exported method Element.GetAttributeNode should have comment or be unexported (golint)
    • Line 208: warning: exported method Element.HasAttribute should have comment or be unexported (golint)
    • Line 213: warning: exported method Element.HasAttributes should have comment or be unexported (golint)
    • Line 217: warning: exported method Element.Attributes should have comment or be unexported (golint)
    • Line 226: warning: exported method Element.ToString should have comment or be unexported (golint)
    • Line 238: warning: exported method Element.HasChildNodes should have comment or be unexported (golint)
    • Line 242: warning: exported method Element.TextContent should have comment or be unexported (golint)
    • Line 246: warning: exported method Element.Id should have comment or be unexported (golint)
    • Line 250: warning: exported method Element.IsEqualNode should have comment or be unexported (golint)
    • Line 261: warning: exported method Element.IsSameNode should have comment or be unexported (golint)
    • Line 269: warning: exported method Element.GetElementsByClassName should have comment or be unexported (golint)
    • Line 273: warning: exported method Element.GetElementsByTagName should have comment or be unexported (golint)
    • Line 277: warning: exported method Element.QuerySelector should have comment or be unexported (golint)
    • Line 281: warning: exported method Element.QuerySelectorAll should have comment or be unexported (golint)
    • Line 285: warning: exported method Element.NodeName should have comment or be unexported (golint)
    • Line 289: warning: exported method Element.FirstChild should have comment or be unexported (golint)
    • Line 293: warning: exported method Element.LastChild should have comment or be unexported (golint)
    • Line 297: warning: exported method Element.FirstElementChild should have comment or be unexported (golint)
    • Line 305: warning: exported method Element.LastElementChild should have comment or be unexported (golint)
    • Line 313: warning: exported method Element.PreviousSibling should have comment or be unexported (golint)
    • Line 317: warning: exported method Element.NextSibling should have comment or be unexported (golint)
    • Line 321: warning: exported method Element.PreviousElementSibling should have comment or be unexported (golint)
    • Line 329: warning: exported method Element.NextElementSibling should have comment or be unexported (golint)
    • Line 337: warning: exported method Element.ParentNode should have comment or be unexported (golint)
    • Line 345: warning: exported method Element.ParentElement should have comment or be unexported (golint)
    • Line 353: warning: exported method Element.ChildNodes should have comment or be unexported (golint)
    • Line 357: warning: exported method Element.Children should have comment or be unexported (golint)
    • Line 361: warning: exported method Element.ChildElementCount should have comment or be unexported (golint)
    • Line 365: warning: exported method Element.ClassList should have comment or be unexported (golint)
    • Line 373: warning: exported method Element.ClassName should have comment or be unexported (golint)
    • Line 377: warning: exported method Element.Lang should have comment or be unexported (golint)
    • Line 385: warning: exported method Element.OwnerDocument should have comment or be unexported (golint)
    • Line 393: warning: exported method Element.NamespaceURI should have comment or be unexported (golint)
    • Line 397: warning: exported method Element.IsDefaultNamespace should have comment or be unexported (golint)
    • Line 411: warning: exported method Element.InnerHTML should have comment or be unexported (golint)
    • Line 415: warning: exported method Element.NodeType should have comment or be unexported (golint)
    • Line 437: warning: exported method Element.NodeValue should have comment or be unexported (golint)
    • Line 450: warning: exported method Element.Contains should have comment or be unexported (golint)
    • Line 459: warning: exported method Element.Matches should have comment or be unexported (golint)
    • k6/output/influxdb/util.go
    • Line 31: warning: exported function MakeClient should have comment or be unexported (golint)
    • Line 50: warning: exported function MakeBatchConfig should have comment or be unexported (golint)
    • k6/js/modules/k6/metrics/metrics.go
    • Line 45: warning: exported type Metric should have comment or be unexported (golint)
    • Line 71: warning: exported method Metric.Add should have comment or be unexported (golint)
    • Line 99: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 101: warning: exported function New should have comment or be unexported (golint)
    • Line 105: warning: exported method Metrics.XCounter should have comment or be unexported (golint)
    • Line 109: warning: exported method Metrics.XGauge should have comment or be unexported (golint)
    • Line 113: warning: exported method Metrics.XTrend should have comment or be unexported (golint)
    • Line 117: warning: exported method Metrics.XRate should have comment or be unexported (golint)
    • k6/js/modules/k6/html/html.go
    • Line 36: warning: exported type HTML should have comment or be unexported (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method HTML.ParseHTML should have comment or be unexported (golint)
    • Line 50: warning: exported type Selection should have comment or be unexported (golint)
    • Line 143: warning: exported method Selection.Add should have comment or be unexported (golint)
    • Line 147: warning: exported method Selection.Find should have comment or be unexported (golint)
    • Line 151: warning: exported method Selection.Closest should have comment or be unexported (golint)
    • Line 155: warning: exported method Selection.Has should have comment or be unexported (golint)
    • Line 159: warning: exported method Selection.Not should have comment or be unexported (golint)
    • Line 168: warning: exported method Selection.Next should have comment or be unexported (golint)
    • Line 172: warning: exported method Selection.NextAll should have comment or be unexported (golint)
    • Line 176: warning: exported method Selection.Prev should have comment or be unexported (golint)
    • Line 180: warning: exported method Selection.PrevAll should have comment or be unexported (golint)
    • Line 184: warning: exported method Selection.Parent should have comment or be unexported (golint)
    • Line 188: warning: exported method Selection.Parents should have comment or be unexported (golint)
    • Line 192: warning: exported method Selection.Siblings should have comment or be unexported (golint)
    • Line 196: warning: comment on exported method Selection.PrevUntil should be of the form "PrevUntil ..." (golint)
    • Line 209: warning: exported method Selection.NextUntil should have comment or be unexported (golint)
    • Line 219: warning: exported method Selection.ParentsUntil should have comment or be unexported (golint)
    • Line 229: warning: exported method Selection.Size should have comment or be unexported (golint)
    • Line 233: warning: exported method Selection.End should have comment or be unexported (golint)
    • Line 237: warning: exported method Selection.Eq should have comment or be unexported (golint)
    • Line 241: warning: exported method Selection.First should have comment or be unexported (golint)
    • Line 245: warning: exported method Selection.Last should have comment or be unexported (golint)
    • Line 249: warning: exported method Selection.Contents should have comment or be unexported (golint)
    • Line 253: warning: exported method Selection.Text should have comment or be unexported (golint)
    • Line 257: warning: exported method Selection.Attr should have comment or be unexported (golint)
    • Line 268: warning: exported method Selection.Html should have comment or be unexported (golint)
    • Line 276: warning: comment on exported method Selection.Val should be of the form "Val ..." (golint)
    • Line 317: warning: exported method Selection.Children should have comment or be unexported (golint)
    • Line 325: warning: exported method Selection.Each should have comment or be unexported (golint)
    • Line 340: warning: exported method Selection.Filter should have comment or be unexported (golint)
    • Line 357: warning: exported method Selection.Is should have comment or be unexported (golint)
    • Line 393: warning: exported method Selection.Slice should have comment or be unexported (golint)
    • Line 404: warning: exported method Selection.Get should have comment or be unexported (golint)
    • Line 421: warning: exported method Selection.ToArray should have comment or be unexported (golint)
    • Line 429: warning: exported method Selection.Index should have comment or be unexported (golint)
    • Line 449: warning: comment on exported method Selection.Data should be of the form "Data ..." (golint)
    • Line 460: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • k6/js/runner.go
    • Line 60: warning: exported type Runner should have comment or be unexported (golint)
    • Line 124: warning: exported method Runner.MakeArchive should have comment or be unexported (golint)
    • Line 283: warning: exported method Runner.Teardown should have comment or be unexported (golint)
    • Line 299: warning: exported method Runner.GetDefaultGroup should have comment or be unexported (golint)
    • Line 303: warning: exported method Runner.GetOptions should have comment or be unexported (golint)
    • Line 385: warning: exported method Runner.SetOptions should have comment or be unexported (golint)
    • Line 526: warning: exported type VU should have comment or be unexported (golint)
    • k6/stats/sink.go
    • Line 38: warning: exported type Sink should have comment or be unexported (golint)
    • Line 44: warning: exported type CounterSink should have comment or be unexported (golint)
    • Line 49: warning: exported method CounterSink.Add should have comment or be unexported (golint)
    • Line 56: warning: exported method CounterSink.Calc should have comment or be unexported (golint)
    • Line 58: warning: exported method CounterSink.Format should have comment or be unexported (golint)
    • Line 65: warning: exported type GaugeSink should have comment or be unexported (golint)
    • Line 71: warning: exported method GaugeSink.Add should have comment or be unexported (golint)
    • Line 82: warning: exported method GaugeSink.Calc should have comment or be unexported (golint)
    • Line 84: warning: exported method GaugeSink.Format should have comment or be unexported (golint)
    • Line 88: warning: exported type TrendSink should have comment or be unexported (golint)
    • Line 98: warning: exported method TrendSink.Add should have comment or be unexported (golint)
    • Line 133: warning: exported method TrendSink.Calc should have comment or be unexported (golint)
    • Line 149: warning: exported method TrendSink.Format should have comment or be unexported (golint)
    • Line 162: warning: exported type RateSink should have comment or be unexported (golint)
    • Line 167: warning: exported method RateSink.Add should have comment or be unexported (golint)
    • Line 174: warning: exported method RateSink.Calc should have comment or be unexported (golint)
    • Line 176: warning: exported method RateSink.Format should have comment or be unexported (golint)
    • Line 180: warning: exported type DummySink should have comment or be unexported (golint)
    • Line 182: warning: exported method DummySink.Add should have comment or be unexported (golint)
    • Line 186: warning: exported method DummySink.Calc should have comment or be unexported (golint)
    • Line 188: warning: exported method DummySink.Format should have comment or be unexported (golint)
    • k6/lib/util.go
    • Line 27: warning: comment on exported function SplitKV should be of the form "SplitKV ..." (golint)
    • Line 54: warning: comment on exported function Max should be of the form "Max ..." (golint)
    • Line 62: warning: comment on exported function Min should be of the form "Min ..." (golint)
    • k6/js/modules/k6/html/gen/gen_elements.go
    • Line 43: warning: exported type NodeHandlerFunc should have comment or be unexported (golint)
    • Line 45: warning: exported type AstInspectState should have comment or be unexported (golint)
    • Line 51: warning: exported type ElemInfo should have comment or be unexported (golint)
    • Line 56: warning: comment on exported type TemplateType should be of the form "TemplateType ..." (with optional leading article) (golint)
    • Line 59: warning: exported type TemplateArg should have comment or be unexported (golint)
    • Line 446: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 517: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • k6/api/v1/group.go
    • Line 31: warning: exported type Check should have comment or be unexported (golint)
    • Line 39: warning: exported function NewCheck should have comment or be unexported (golint)
    • Line 49: warning: exported type Group should have comment or be unexported (golint)
    • Line 61: warning: exported function NewGroup should have comment or be unexported (golint)
    • Line 87: warning: exported method Group.GetID should have comment or be unexported (golint)
    • Line 91: warning: exported method Group.SetID should have comment or be unexported (golint)
    • Line 96: warning: exported method Group.GetReferences should have comment or be unexported (golint)
    • Line 111: warning: exported method Group.GetReferencedIDs should have comment or be unexported (golint)
    • Line 132: warning: exported method Group.SetToManyReferenceIDs should have comment or be unexported (golint)
    • Line 143: warning: exported method Group.SetToOneReferenceID should have comment or be unexported (golint)
    • Line 154: warning: exported function FlattenGroup should have comment or be unexported (golint)
    • k6/api/v1/status.go
    • Line 30: warning: exported type Status should have comment or be unexported (golint)
    • Line 41: warning: exported function NewStatus should have comment or be unexported (golint)
    • Line 54: warning: exported method Status.GetName should have comment or be unexported (golint)
    • Line 58: warning: exported method Status.GetID should have comment or be unexported (golint)
    • Line 62: warning: exported method Status.SetID should have comment or be unexported (golint)
    • k6/stats/stats.go
    • Line 62: warning: comment on exported var ErrInvalidMetricType should be of the form "ErrInvalidMetricType ..." (golint)
    • Line 65: warning: comment on exported var ErrInvalidValueType should be of the form "ErrInvalidValueType ..." (golint)
    • Line 129: warning: comment on exported type ValueType should be of the form "ValueType ..." (with optional leading article) (golint)
    • Line 227: warning: exported method SampleTags.Contains should have comment or be unexported (golint)
    • Line 449: warning: exported function New should have comment or be unexported (golint)
    • Line 485: warning: comment on exported function NewSubmetric should be of the form "NewSubmetric ..." (golint)
    • k6/lib/options.go
    • Line 46: warning: comment on exported type TLSVersion should be of the form "TLSVersion ..." (with optional leading article) (golint)
    • Line 49: warning: exported method TLSVersion.MarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported method TLSVersion.UnmarshalJSON should have comment or be unexported (golint)
    • Line 70: warning: comment on exported type TLSVersionsFields should be of the form "TLSVersionsFields ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported type TLSVersions should be of the form "TLSVersions ..." (with optional leading article) (golint)
    • Line 79: warning: exported method TLSVersions.UnmarshalJSON should have comment or be unexported (golint)
    • Line 93: warning: comment on exported type TLSCipherSuites should be of the form "TLSCipherSuites ..." (with optional leading article) (golint)
    • Line 111: warning: exported method TLSCipherSuites.UnmarshalJSON should have comment or be unexported (golint)
    • Line 131: warning: comment on exported type TLSAuthFields should be of the form "TLSAuthFields ..." (with optional leading article) (golint)
    • Line 141: warning: comment on exported type TLSAuth should be of the form "TLSAuth ..." (with optional leading article) (golint)
    • Line 147: warning: exported method TLSAuth.UnmarshalJSON should have comment or be unexported (golint)
    • Line 157: warning: exported method TLSAuth.Certificate should have comment or be unexported (golint)
    • Line 275: warning: exported type Options should have comment or be unexported (golint)
    • Line 391: warning: comment on exported method Options.Apply should be of the form "Apply ..." (golint)
    • k6/js/modules/k6/k6.go
    • Line 38: warning: exported type K6 should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported method K6.Fail should have comment or be unexported (golint)
    • Line 54: warning: exported method K6.Sleep should have comment or be unexported (golint)
    • Line 63: warning: exported method K6.RandomSeed should have comment or be unexported (golint)
    • Line 70: warning: exported method K6.Group should have comment or be unexported (golint)
    • Line 114: warning: exported method K6.Check should have comment or be unexported (golint)
    • k6/js/modules/k6/crypto/crypto.go
    • Line 44: warning: exported type Crypto should have comment or be unexported (golint)
    • Line 46: warning: exported type Hasher should have comment or be unexported (golint)
    • Line 52: warning: exported function New should have comment or be unexported (golint)
    • k6/js/tc39/tc39_test.go
    • Line 327: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • k6/lib/netext/tls.go
    • Line 53: warning: exported type TLSInfo should have comment or be unexported (golint)
    • Line 57: warning: exported type OCSP should have comment or be unexported (golint)
    • Line 66: warning: exported function ParseTLSConnState should have comment or be unexported (golint)
    • k6/js/modules/k6/html/util.go
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 137: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • k6/cmd/config.go
    • Line 54: warning: exported type Config should have comment or be unexported (golint)
    • Line 74: warning: exported method Config.Apply should have comment or be unexported (golint)
    • k6/lib/context.go
    • Line 31: warning: exported function WithState should have comment or be unexported (golint)
    • Line 35: warning: exported function GetState should have comment or be unexported (golint)
    • k6/converter/har/utils.go
    • Line 30: warning: comment on exported type EntryByStarted should be of the form "EntryByStarted ..." (with optional leading article) (golint)
    • Line 41: warning: exported type PageByStarted should have comment or be unexported (golint)
    • Line 51: warning: exported function Decode should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function IsAllowedURL should be of the form "IsAllowedURL ..." (golint)
    • Line 82: warning: exported function SplitEntriesInBatches should have comment or be unexported (golint)

gocyclo89%

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.

    • k6/js/common/bridge_test.go
    • Line 291: warning: cyclomatic complexity 40 of function TestBind() is high (> 15) (gocyclo)
    • Line 682: warning: cyclomatic complexity 17 of function BenchmarkProxy() is high (> 15) (gocyclo)
    • k6/lib/archive.go
    • Line 133: warning: cyclomatic complexity 20 of function ReadArchive() is high (> 15) (gocyclo)
    • Line 245: warning: cyclomatic complexity 19 of function (*Archive).Write() is high (> 15) (gocyclo)
    • k6/log/loki.go
    • Line 109: warning: cyclomatic complexity 18 of function (*lokiHook).parseArgs() is high (> 15) (gocyclo)
    • k6/output/cloud/output.go
    • Line 423: warning: cyclomatic complexity 24 of function (*Output).aggregateHTTPTrails() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 16 of function newOutput() is high (> 15) (gocyclo)
    • k6/core/local/local_test.go
    • Line 496: warning: cyclomatic complexity 17 of function TestExecutionSchedulerRunCustomConfigNoCrossover() is high (> 15) (gocyclo)
    • Line 377: warning: cyclomatic complexity 16 of function TestExecutionSchedulerRunCustomTags() is high (> 15) (gocyclo)
    • k6/loader/loader.go
    • Line 94: warning: cyclomatic complexity 19 of function Resolve() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 16 of function Load() is high (> 15) (gocyclo)

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!