Skip to content

Commit a0d9dfd

Browse files
authored
Upgraded golangci-lint to v2.4.0 (#1925)
1 parent 0152573 commit a0d9dfd

File tree

19 files changed

+29
-3
lines changed

19 files changed

+29
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
workflow_dispatch:
99
env:
10-
GOLANGCI_LINT_VERSION: v2.1.6
10+
GOLANGCI_LINT_VERSION: v2.4.0
1111
GO_VERSION: '1.25'
1212
jobs:
1313
golangci:

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ linters:
4545
- iface
4646
- gosmopolitan
4747
- funcorder
48+
49+
# introduced v2.4.0
50+
- noinlineerr
51+
- wsl_v5
4852
settings:
4953
errcheck:
5054
check-type-assertions: false
@@ -117,6 +121,10 @@ linters:
117121
- name: if-return
118122
- name: increment-decrement
119123
- name: var-naming
124+
arguments:
125+
- [] # AllowList
126+
- [] # DenyList
127+
- - skip-package-name-checks: true
120128
- name: var-declaration
121129
- name: package-comments
122130
- name: range

examples/topic/topicreader/topicreader_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func StartReader(ctx context.Context, db *ydb.Driver) (*topiclistener.TopicListe
2828

2929
type TopicEventsHandler struct {
3030
topiclistener.BaseHandler
31+
3132
listener *topiclistener.TopicListener
3233

3334
m sync.Mutex

internal/pool/pool_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type (
4141
}
4242
testWaitChPool struct {
4343
xsync.Pool[chan *testItem]
44+
4445
testHookGetWaitCh func()
4546
}
4647
)

internal/query/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (c *Client) FetchScriptResults(ctx context.Context,
128128

129129
type executeScriptSettings struct {
130130
executeSettings
131+
131132
ttl time.Duration
132133
operationParams *Ydb_Operations.OperationParams
133134
}

internal/query/options/retry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type (
3333

3434
doTxSettings struct {
3535
doSettings
36+
3637
txSettings tx.Settings
3738
}
3839

internal/query/result_set.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type (
4040
}
4141
resultSetWithClose struct {
4242
*resultSet
43+
4344
close func(ctx context.Context) error
4445
}
4546
)

internal/topic/configs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
type Config struct {
1111
config.Common
12+
1213
Trace *trace.Topic
1314
MaxGrpcMessageSize int
1415
}

internal/topic/topiclistenerinternal/partition_worker_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
// syncMessageSender extends mockMessageSender with synchronization capabilities
2929
type syncMessageSender struct {
3030
*mockMessageSender
31+
3132
messageReceived empty.Chan
3233
}
3334

internal/topic/topicmock/grpc_topic_mock.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func newGrpcMock(listener net.Listener, topicServiceImpl Ydb_Topic_V1.TopicServi
8989

9090
type mockDiscoveryService struct {
9191
Ydb_Discovery_V1.UnimplementedDiscoveryServiceServer
92+
9293
host string
9394
port uint32
9495
}

0 commit comments

Comments
 (0)