Skip to content

Commit 513dc13

Browse files
committed
* fixed linter manually
1 parent e1fc30d commit 513dc13

69 files changed

Lines changed: 578 additions & 271 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.golangci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ linters:
2020
- tr
2121
- tx
2222
- t
23-
- xtx
23+
- xTx
24+
- xTr
2425
- sp
2526
- in
2627
- s
28+
- xs
2729
- oo
30+
- fn
2831
ignore-decls:
2932
- wg sync.WaitGroup
3033
- wg *sync.WaitGroup
3134
- db *gorm.DB
3235
- db redis.UniversalClient
33-
- m Manager
36+
- db *sql.DB
37+
- m *Manager
38+
- m trm.Manager
3439
wsl_v5:
3540
default: all
3641
disable:
@@ -166,8 +171,14 @@ linters:
166171
formatters:
167172
enable:
168173
- gofmt
174+
- gci
169175
- gofumpt
170176
- goimports
177+
- golines
178+
settings:
179+
goimports:
180+
local-prefixes:
181+
- github.com/avito-tech/go-transaction-manager/trm/v2
171182

172183
exclusions:
173184
paths:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ fmt:
2323
lint:
2424
cd sh && sh ./lint.sh
2525

26+
lint-with-fix:
27+
cd sh && sh ./lint.sh --fix
28+
2629
lint.verbose:
2730
cd sh && sh ./lint.sh -v
2831

drivers/goredis8/context.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package goredis8
33
import (
44
"context"
55

6-
"github.com/go-redis/redis/v8"
7-
86
"github.com/avito-tech/go-transaction-manager/trm/v2"
97
trmcontext "github.com/avito-tech/go-transaction-manager/trm/v2/context"
8+
"github.com/go-redis/redis/v8"
109
)
1110

1211
// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.

drivers/goredis8/factory.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package goredis8
33
import (
44
"context"
55

6-
"github.com/go-redis/redis/v8"
7-
86
"github.com/avito-tech/go-transaction-manager/trm/v2"
7+
"github.com/go-redis/redis/v8"
98
)
109

1110
// NewDefaultFactory creates default trm.Transaction(redis.UniversalClient).

0 commit comments

Comments
 (0)