Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js/modules/k6: some lint fixes #3563

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/modules/k6/execution/execution.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package execution implements k6/execution which lets script find out more about it is execution.
package execution

import (
Expand Down
2 changes: 2 additions & 0 deletions js/modules/k6/k6.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func (mi *K6) Group(name string, val goja.Value) (goja.Value, error) {
}

// Check will emit check metrics for the provided checks.
//
//nolint:funlen
func (mi *K6) Check(arg0, checks goja.Value, extras ...goja.Value) (bool, error) {
state := mi.vu.State()
if state == nil {
Expand Down
2 changes: 2 additions & 0 deletions js/modules/k6/metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package metrics implements k6/metrics and let script work with custom metrics.
package metrics

import (
Expand All @@ -15,6 +16,7 @@ import (
"go.k6.io/k6/metrics"
)

// Metric is a wrapper around custom metrics
type Metric struct {
metric *metrics.Metric
vu modules.VU
Expand Down
Loading