Skip to content

Commit 363a175

Browse files
DPDV-6415: Fix issues find by linter after update (#97)
* DPDV-6415: Fix issues find by linter after update * Add parameter to use the config file
1 parent bed0a6d commit 363a175

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://golangci-lint.run/usage/configuration
2+
3+
# Options for analysis running.
4+
run:
5+
# Include test files or not.
6+
# Default: true
7+
tests: false
8+
9+
# Allow multiple parallel golangci-lint instances running.
10+
# If false, golangci-lint acquires file lock on start.
11+
# Default: false
12+
allow-parallel-runners: true

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ repos:
3131
- id: gofumpt
3232
- id: go-err-check
3333
- id: golangci-lint
34+
args: [--config=.golangci.yml]
3435
- id: go-static-check
3536
# - id: go-ruleguard # requires https://github.com/quasilyte/go-ruleguard
3637
# args: [rules/rules.go] # required

examples/stress/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ require (
88
)
99

1010
require (
11-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
11+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
1212
github.com/cskr/pubsub v1.0.2 // indirect
1313
github.com/google/uuid v1.6.0 // indirect
14-
go.opentelemetry.io/otel v1.24.0 // indirect
15-
go.opentelemetry.io/otel/metric v1.24.0 // indirect
14+
go.opentelemetry.io/otel v1.27.0 // indirect
15+
go.opentelemetry.io/otel/metric v1.27.0 // indirect
1616
go.uber.org/multierr v1.10.0 // indirect
1717
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
1818
)

examples/stress/go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
22
github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
3+
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
34
github.com/cskr/pubsub v1.0.2 h1:vlOzMhl6PFn60gRlTQQsIfVwaPB/B/8MziK8FhEPt/0=
45
github.com/cskr/pubsub v1.0.2/go.mod h1:/8MzYXk/NJAz782G8RPkFzXTZVu63VotefPnR9TIRis=
56
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -21,9 +22,11 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
2122
go.opentelemetry.io/otel v1.23.1 h1:Za4UzOqJYS+MUczKI320AtqZHZb7EqxO00jAHE0jmQY=
2223
go.opentelemetry.io/otel v1.23.1/go.mod h1:Td0134eafDLcTS4y+zQ26GE8u3dEuRBiBCTUIRHaikA=
2324
go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo=
25+
go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ=
2426
go.opentelemetry.io/otel/metric v1.23.1 h1:PQJmqJ9u2QaJLBOELl1cxIdPcpbwzbkjfEyelTl2rlo=
2527
go.opentelemetry.io/otel/metric v1.23.1/go.mod h1:mpG2QPlAfnK8yNhNJAxDZruU9Y1/HubbC+KyH8FaCWI=
2628
go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco=
29+
go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak=
2730
go.opentelemetry.io/otel/trace v1.23.1 h1:4LrmmEd8AU2rFvU1zegmvqW7+kWarxtNOPyeL6HmYY8=
2831
go.opentelemetry.io/otel/trace v1.23.1/go.mod h1:4IpnpJFwr1mo/6HL8XIPJaE9y0+u1KcVmuW7dwFSVrI=
2932
go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk=

0 commit comments

Comments
 (0)