Skip to content

Commit

Permalink
Update golangci-lint to v1.57
Browse files Browse the repository at this point in the history
  • Loading branch information
Plakhotnikov Vladimir committed Apr 2, 2024
1 parent 982c7e3 commit c218ca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

run:
timeout: 1m
skip-dirs:
- .github
- .git
allow-parallel-runners: true

output:
Expand All @@ -13,8 +10,6 @@ output:
linters-settings:
wsl:
allow-assign-and-anything: true
govet:
check-shadowing: true
godot:
scope: declarations
capital: true
Expand Down Expand Up @@ -71,8 +66,12 @@ linters: # All available linters list: <https://golangci-lint.run/usage/linters/
- unparam # Reports unused function parameters
- unused # Checks Go code for unused constants, variables, functions and types
- whitespace # Tool for detection of leading and trailing whitespace
- shadow

issues:
exclude-dirs:
- .github
- .git
exclude-rules:
- path: _test\.go
linters:
Expand Down
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ func (p *Plugin) PushBatch(ctx context.Context, j []jobsApi.Message) error {
ctxPush, cancel := context.WithTimeout(ctx, time.Second*time.Duration(p.cfg.Timeout))
err := d.(jobsApi.Driver).Push(ctxPush, j[i])
if err != nil {
cancel()
p.metrics.CountPushErr()
p.log.Error("job push batch error", zap.String("ID", j[i].ID()), zap.String("pipeline", ppl.Name()), zap.String("driver", ppl.Driver()), zap.Time("start", start), zap.Int64("elapsed", time.Since(start).Milliseconds()), zap.Error(err))
cancel()
return errors.E(op, err)
}

Expand Down

0 comments on commit c218ca5

Please sign in to comment.