Skip to content

Commit c45b0b9

Browse files
authored
golangci-lint: Bump the version (#4504)
* golangci-lint: Bump the version * Fixed linter issues related to new version
1 parent 30c26d2 commit c45b0b9

File tree

12 files changed

+7
-16
lines changed

12 files changed

+7
-16
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v1.62.2
1+
# v1.63.4
22
# Please don't remove the first line. It uses in CI to determine the golangci version
33
run:
44
timeout: 5m

cloudapi/logs.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ func (c *Config) logtailConn(ctx context.Context, referenceID string, since time
118118

119119
// StreamLogsToLogger streams the logs for the configured test to the provided logger until ctx is
120120
// Done or an error occurs.
121-
//
122-
//nolint:funlen
123121
func (c *Config) StreamLogsToLogger(
124122
ctx context.Context, logger logrus.FieldLogger, referenceID string, tailFrom time.Duration,
125123
) error {

internal/cmd/ui.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ func printExecutionDescription(
164164
}
165165
}
166166

167-
//nolint:funlen
168167
func renderMultipleBars(
169168
nocolor, isTTY, goBack bool, maxLeft, termWidth, widthDelta int, pbs []*pb.ProgressBar,
170169
) (string, int) {

internal/js/modules/k6/browser/browser/browser_mapping.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import (
1010
)
1111

1212
// mapBrowser to the JS module.
13-
func mapBrowser(vu moduleVU) mapping { //nolint:funlen,gocognit
13+
//
14+
//nolint:gocognit
15+
func mapBrowser(vu moduleVU) mapping {
1416
return mapping{
1517
"context": func() (mapping, error) {
1618
b, err := vu.browser()

internal/js/modules/k6/browser/common/element_handle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ func (h *ElementHandle) newAction(
16181618
}
16191619
}
16201620

1621-
//nolint:funlen,gocognit
1621+
//nolint:gocognit
16221622
func (h *ElementHandle) newPointerAction(
16231623
fn elementHandlePointerActionFunc, opts *ElementHandleBasePointerOptions,
16241624
) func(apiCtx context.Context, resultCh chan any, errCh chan error) {

internal/js/modules/k6/browser/common/frame.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,8 +1888,6 @@ func (f *Frame) WaitForLoadState(state string, opts sobek.Value) error {
18881888
}
18891889

18901890
// WaitForNavigation waits for the given navigation lifecycle event to happen.
1891-
//
1892-
//nolint:funlen
18931891
func (f *Frame) WaitForNavigation(opts *FrameWaitForNavigationOptions) (*Response, error) {
18941892
f.log.Debugf("Frame:WaitForNavigation",
18951893
"fid:%s furl:%s", f.ID(), f.URL())

internal/js/modules/k6/browser/common/frame_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (fs *FrameSession) initDomains() error {
225225
return nil
226226
}
227227

228-
//nolint:funlen,cyclop
228+
//nolint:cyclop
229229
func (fs *FrameSession) initEvents() {
230230
fs.logger.Debugf("NewFrameSession:initEvents",
231231
"sid:%v tid:%v", fs.session.ID(), fs.targetID)

internal/js/modules/k6/browser/common/network_manager.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ func (m *NetworkManager) emitRequestMetrics(req *Request) {
193193
})
194194
}
195195

196-
//nolint:funlen
197196
func (m *NetworkManager) emitResponseMetrics(resp *Response, req *Request) {
198197
state := m.vu.State()
199198

internal/js/modules/k6/browser/common/screenshotter.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ func getViewPortDimensions(ctx context.Context, sess session, logger *log.Logger
269269
return visualViewportScale, visualViewportPageX, visualViewportPageY, nil
270270
}
271271

272-
//nolint:funlen
273272
func (s *screenshotter) screenshotElement(h *ElementHandle, opts *ElementHandleScreenshotOptions) ([]byte, error) {
274273
format := opts.Format
275274
viewportSize, originalViewportSize, err := s.originalViewportSize(h.frame.page)

js/modules/k6/http/response.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ func checkErrorInJSON(input []byte, offset int, err error) error {
134134

135135
// SubmitForm parses the body as an html looking for a from and then submitting it
136136
// TODO: document the actual arguments that can be provided
137-
//
138-
//nolint:funlen
139137
func (res *Response) SubmitForm(args ...sobek.Value) (*Response, error) {
140138
rt := res.client.moduleInstance.vu.Runtime()
141139

lib/executor/ramping_vus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (vlvc RampingVUsConfig) precalculateTheRequiredSteps(et *lib.ExecutionTuple
304304
// executorEndOffset, is not handled here. Instead GetExecutionRequirements()
305305
// takes care of that. But to make its job easier, this method won't add any
306306
// steps with an offset that's greater or equal to executorEndOffset.
307-
func (vlvc RampingVUsConfig) reserveVUsForGracefulRampDowns( //nolint:funlen
307+
func (vlvc RampingVUsConfig) reserveVUsForGracefulRampDowns(
308308
rawSteps []lib.ExecutionStep, executorEndOffset time.Duration,
309309
) []lib.ExecutionStep {
310310
rawStepsLen := len(rawSteps)

lib/netext/httpext/transport.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ func newTransport(
7272

7373
// Helper method to finish the tracer trail, assemble the tag values and emits
7474
// the metric samples for the supplied unfinished request.
75-
//
76-
//nolint:funlen
7775
func (t *transport) measureAndEmitMetrics(unfReq *unfinishedRequest) *finishedRequest {
7876
trail := unfReq.tracer.Done()
7977

0 commit comments

Comments
 (0)