Skip to content

Commit e5b704f

Browse files
committed
chore: update golangci
1 parent 1bc18ba commit e5b704f

File tree

6 files changed

+136
-126
lines changed

6 files changed

+136
-126
lines changed

.github/workflows/linters.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
go-version: stable
1717

1818
- name: Run linter
19-
uses: golangci/golangci-lint-action@v6.5.2 # Action page: <https://github.com/golangci/golangci-lint-action>
19+
uses: golangci/golangci-lint-action@v7 # Action page: <https://github.com/golangci/golangci-lint-action>
2020
with:
21-
version: v1.64 # without patch version
2221
only-new-issues: false # show only new issues if it's a pull request
2322
args: --timeout=10m --build-tags=race ./...

.golangci.yml

Lines changed: 84 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,88 @@
1-
# Documentation: <https://github.com/golangci/golangci-lint#config-file>
2-
1+
version: "2"
32
run:
4-
timeout: 1m
53
allow-parallel-runners: true
6-
7-
linters-settings:
8-
wsl:
9-
allow-assign-and-anything: true
10-
gocyclo:
11-
min-complexity: 15
12-
godot:
13-
scope: declarations
14-
capital: true
15-
dupl:
16-
threshold: 100
17-
goconst:
18-
min-len: 2
19-
min-occurrences: 3
20-
misspell:
21-
locale: US
22-
lll:
23-
line-length: 120
24-
prealloc:
25-
simple: true
26-
range-loops: true
27-
for-loops: true
28-
nolintlint:
29-
require-specific: true
30-
31-
linters: # All available linters list: <https://golangci-lint.run/usage/linters/>
32-
disable-all: true
4+
linters:
5+
default: none
336
enable:
34-
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
35-
- bodyclose # Checks whether HTTP response body is closed successfully
36-
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f())
37-
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
38-
- errorlint # find code that will cause problems with the error wrapping scheme introduced in Go 1.13
39-
- exhaustive # check exhaustiveness of enum switch statements
40-
- copyloopvar # checks for pointers to enclosing loop variables
41-
- gochecknoglobals # Checks that no globals are present in Go code
42-
- gochecknoinits # Checks that no init functions are present in Go code
43-
- goconst # Finds repeated strings that could be replaced by a constant
44-
- gocritic # The most opinionated Go source code linter
45-
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
46-
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
7+
- asciicheck
8+
- bodyclose
9+
- copyloopvar
10+
- dogsled
11+
- errcheck
12+
- errorlint
13+
- exhaustive
14+
- gochecknoglobals
15+
- gochecknoinits
16+
- goconst
17+
- gocritic
18+
- goprintffuncname
19+
- gosec
20+
- govet
21+
- ineffassign
22+
- misspell
23+
- nakedret
24+
- noctx
25+
- nolintlint
26+
- prealloc
4727
- revive
48-
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
49-
- gosec # Inspects source code for security problems
50-
- gosimple # Linter for Go source code that specializes in simplifying a code
51-
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
52-
- ineffassign # Detects when assignments to existing variables are not used
53-
- misspell # Finds commonly misspelled English words in comments
54-
- nakedret # Finds naked returns in functions greater than a specified function length
55-
- noctx # finds sending http request without context.Context
56-
- nolintlint # Reports ill-formed or insufficient nolint directives
57-
- prealloc # Finds slice declarations that could potentially be preallocated
58-
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
59-
- stylecheck # Stylecheck is a replacement for golint
60-
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
61-
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
62-
- unconvert # Remove unnecessary type conversions
63-
- unparam # Reports unused function parameters
64-
- unused # Checks Go code for unused constants, variables, functions and types
65-
- whitespace # Tool for detection of leading and trailing whitespace
66-
67-
issues:
68-
exclude-dirs:
69-
- .github
70-
- .git
71-
exclude-rules:
72-
- path: _test\.go
73-
linters:
74-
- dupl
75-
- funlen
76-
- scopelint
77-
- gocognit
28+
- staticcheck
29+
- tparallel
30+
- unconvert
31+
- unparam
32+
- unused
33+
- whitespace
34+
settings:
35+
dupl:
36+
threshold: 100
37+
goconst:
38+
min-len: 2
39+
min-occurrences: 3
40+
gocyclo:
41+
min-complexity: 15
42+
godot:
43+
scope: declarations
44+
capital: true
45+
lll:
46+
line-length: 120
47+
misspell:
48+
locale: US
49+
nolintlint:
50+
require-specific: true
51+
prealloc:
52+
simple: true
53+
range-loops: true
54+
for-loops: true
55+
wsl:
56+
allow-assign-and-anything: true
57+
exclusions:
58+
generated: lax
59+
presets:
60+
- comments
61+
- common-false-positives
62+
- legacy
63+
- std-error-handling
64+
rules:
65+
- linters:
66+
- dupl
67+
- funlen
68+
- gocognit
69+
- scopelint
70+
path: _test\.go
71+
paths:
72+
- .github
73+
- .git
74+
- third_party$
75+
- builtin$
76+
- examples$
77+
formatters:
78+
enable:
79+
- gofmt
80+
- goimports
81+
exclusions:
82+
generated: lax
83+
paths:
84+
- .github
85+
- .git
86+
- third_party$
87+
- builtin$
88+
- examples$

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ toolchain go1.24.0
66

77
require (
88
github.com/aws/aws-sdk-go-v2 v1.36.3
9-
github.com/aws/aws-sdk-go-v2/config v1.29.9
10-
github.com/aws/aws-sdk-go-v2/credentials v1.17.62
11-
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.1
9+
github.com/aws/aws-sdk-go-v2/config v1.29.11
10+
github.com/aws/aws-sdk-go-v2/credentials v1.17.64
11+
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.2
1212
github.com/aws/smithy-go v1.22.3
1313
github.com/goccy/go-json v0.10.5
1414
github.com/google/uuid v1.6.0
@@ -21,7 +21,7 @@ require (
2121
go.opentelemetry.io/otel/sdk v1.35.0
2222
go.opentelemetry.io/otel/trace v1.35.0
2323
go.uber.org/zap v1.27.0
24-
google.golang.org/genproto v0.0.0-20250313205543-e70fdf4c4cb4
24+
google.golang.org/genproto v0.0.0-20250324211829-b45e905df463
2525
)
2626

2727
require (
@@ -31,8 +31,8 @@ require (
3131
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
3232
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
3333
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
34-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect
35-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 // indirect
35+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.2 // indirect
3636
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
3737
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3838
github.com/go-logr/logr v1.4.2 // indirect
@@ -42,6 +42,6 @@ require (
4242
go.opentelemetry.io/otel/metric v1.35.0 // indirect
4343
go.uber.org/multierr v1.11.0 // indirect
4444
golang.org/x/sys v0.31.0 // indirect
45-
google.golang.org/protobuf v1.36.5 // indirect
45+
google.golang.org/protobuf v1.36.6 // indirect
4646
gopkg.in/yaml.v3 v3.0.1 // indirect
4747
)

go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
github.com/aws/aws-sdk-go-v2 v1.36.3 h1:mJoei2CxPutQVxaATCzDUjcZEjVRdpsiiXi2o38yqWM=
22
github.com/aws/aws-sdk-go-v2 v1.36.3/go.mod h1:LLXuLpgzEbD766Z5ECcRmi8AzSwfZItDtmABVkRLGzg=
3-
github.com/aws/aws-sdk-go-v2/config v1.29.9 h1:Kg+fAYNaJeGXp1vmjtidss8O2uXIsXwaRqsQJKXVr+0=
4-
github.com/aws/aws-sdk-go-v2/config v1.29.9/go.mod h1:oU3jj2O53kgOU4TXq/yipt6ryiooYjlkqqVaZk7gY/U=
5-
github.com/aws/aws-sdk-go-v2/credentials v1.17.62 h1:fvtQY3zFzYJ9CfixuAQ96IxDrBajbBWGqjNTCa79ocU=
6-
github.com/aws/aws-sdk-go-v2/credentials v1.17.62/go.mod h1:ElETBxIQqcxej++Cs8GyPBbgMys5DgQPTwo7cUPDKt8=
3+
github.com/aws/aws-sdk-go-v2/config v1.29.11 h1:/hkJIxaQzFQy0ebFjG5NHmAcLCrvNSuXeHnxLfeCz1Y=
4+
github.com/aws/aws-sdk-go-v2/config v1.29.11/go.mod h1:OFPRZVQxC4mKqy2Go6Cse/m9NOStAo6YaMvAcTMUROg=
5+
github.com/aws/aws-sdk-go-v2/credentials v1.17.64 h1:NH4RAQJEXBDQDUudTqMNHdyyEVa5CvMn0tQicqv48jo=
6+
github.com/aws/aws-sdk-go-v2/credentials v1.17.64/go.mod h1:tUoJfj79lzEcalHDbyNkpnZZTRg/2ayYOK/iYnRfPbo=
77
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 h1:x793wxmUWVDhshP8WW2mlnXuFrO4cOd3HLBroh1paFw=
88
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30/go.mod h1:Jpne2tDnYiFascUEs2AWHJL9Yp7A5ZVy3TNyxaAjD6M=
99
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 h1:ZK5jHhnrioRkUNOc+hOgQKlUL5JeC3S6JgLxtQ+Rm0Q=
@@ -16,12 +16,12 @@ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 h1:eAh2A4b
1616
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3/go.mod h1:0yKJC/kb8sAnmlYa6Zs3QVYqaC8ug2AbnNChv5Ox3uA=
1717
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 h1:dM9/92u2F1JbDaGooxTq18wmmFzbJRfXfVfy96/1CXM=
1818
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15/go.mod h1:SwFBy2vjtA0vZbjjaFtfN045boopadnoVPhu4Fv66vY=
19-
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.1 h1:ZtgZeMPJH8+/vNs9vJFFLI0QEzYbcN0p7x1/FFwyROc=
20-
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.1/go.mod h1:Bar4MrRxeqdn6XIh8JGfiXuFRmyrrsZNTJotxEJmWW0=
21-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 h1:8JdC7Gr9NROg1Rusk25IcZeTO59zLxsKgE0gkh5O6h0=
22-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1/go.mod h1:qs4a9T5EMLl/Cajiw2TcbNt2UNo/Hqlyp+GiuG4CFDI=
23-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 h1:KwuLovgQPcdjNMfFt9OhUd9a2OwcOKhxfvF4glTzLuA=
24-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1/go.mod h1:MlYRNmYu/fGPoxBQVvBYr9nyr948aY/WLUvwBMBJubs=
19+
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.2 h1:O8MEUIcgez4mbIAgcUwZN3Pfj7v7mrkEW61uQrDusLQ=
20+
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.2/go.mod h1:Bar4MrRxeqdn6XIh8JGfiXuFRmyrrsZNTJotxEJmWW0=
21+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 h1:pdgODsAhGo4dvzC3JAG5Ce0PX8kWXrTZGx+jxADD+5E=
22+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2/go.mod h1:qs4a9T5EMLl/Cajiw2TcbNt2UNo/Hqlyp+GiuG4CFDI=
23+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.2 h1:wK8O+j2dOolmpNVY1EWIbLgxrGCHJKVPm08Hv/u80M8=
24+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.2/go.mod h1:MlYRNmYu/fGPoxBQVvBYr9nyr948aY/WLUvwBMBJubs=
2525
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 h1:PZV5W8yk4OtH1JAuhV2PXwwO9v5G5Aoj+eMCn4T+1Kc=
2626
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17/go.mod h1:cQnB8CUnxbMU82JvlqjKR2HBOm3fe9pWorWBza6MBJ4=
2727
github.com/aws/smithy-go v1.22.3 h1:Z//5NuZCSW6R4PhQ93hShNbyBbn8BWCmCVCt+Q8Io5k=
@@ -75,10 +75,10 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
7575
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
7676
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
7777
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
78-
google.golang.org/genproto v0.0.0-20250313205543-e70fdf4c4cb4 h1:kCjWYliqPA8g5z87mbjnf/cdgQqMzBfp9xYre5qKu2A=
79-
google.golang.org/genproto v0.0.0-20250313205543-e70fdf4c4cb4/go.mod h1:SqIx1NV9hcvqdLHo7uNZDS5lrUJybQ3evo3+z/WBfA0=
80-
google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM=
81-
google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
78+
google.golang.org/genproto v0.0.0-20250324211829-b45e905df463 h1:qEFnJI6AnfZk0NNe8YTyXQh5i//Zxi4gBHwRgp76qpw=
79+
google.golang.org/genproto v0.0.0-20250324211829-b45e905df463/go.mod h1:SqIx1NV9hcvqdLHo7uNZDS5lrUJybQ3evo3+z/WBfA0=
80+
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
81+
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
8282
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
8383
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
8484
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

tests/go.mod

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ toolchain go1.24.0
77
require (
88
github.com/Shopify/toxiproxy/v2 v2.12.0
99
github.com/aws/aws-sdk-go-v2 v1.36.3
10-
github.com/aws/aws-sdk-go-v2/config v1.29.9
11-
github.com/aws/aws-sdk-go-v2/credentials v1.17.62
12-
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.1
10+
github.com/aws/aws-sdk-go-v2/config v1.29.11
11+
github.com/aws/aws-sdk-go-v2/credentials v1.17.64
12+
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.2
1313
github.com/goccy/go-json v0.10.5
1414
github.com/google/uuid v1.6.0
1515
github.com/roadrunner-server/api/v4 v4.18.1
@@ -26,7 +26,7 @@ require (
2626
github.com/roadrunner-server/sqs/v5 v5.0.4
2727
github.com/stretchr/testify v1.10.0
2828
go.uber.org/zap v1.27.0
29-
google.golang.org/genproto v0.0.0-20250313205543-e70fdf4c4cb4
29+
google.golang.org/genproto v0.0.0-20250324211829-b45e905df463
3030
)
3131

3232
replace github.com/roadrunner-server/sqs/v5 => ../
@@ -38,8 +38,8 @@ require (
3838
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
3939
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
4040
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
41-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect
42-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 // indirect
41+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 // indirect
42+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.2 // indirect
4343
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
4444
github.com/aws/smithy-go v1.22.3 // indirect
4545
github.com/beorn7/perks v1.0.1 // indirect
@@ -105,7 +105,7 @@ require (
105105
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
106106
go.opentelemetry.io/otel/trace v1.35.0 // indirect
107107
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
108-
go.temporal.io/api v1.45.0 // indirect
108+
go.temporal.io/api v1.46.0 // indirect
109109
go.temporal.io/sdk v1.33.0 // indirect
110110
go.temporal.io/sdk/contrib/opentelemetry v0.6.0 // indirect
111111
go.uber.org/multierr v1.11.0 // indirect
@@ -114,10 +114,10 @@ require (
114114
golang.org/x/sys v0.31.0 // indirect
115115
golang.org/x/text v0.23.0 // indirect
116116
golang.org/x/time v0.11.0 // indirect
117-
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
118-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
117+
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 // indirect
118+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
119119
google.golang.org/grpc v1.71.0 // indirect
120-
google.golang.org/protobuf v1.36.5 // indirect
120+
google.golang.org/protobuf v1.36.6 // indirect
121121
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
122122
gopkg.in/yaml.v3 v3.0.1 // indirect
123123
)

0 commit comments

Comments
 (0)