Skip to content

Commit cd1a8ca

Browse files
committed
Update formatters in .golangci.yml
1 parent c36c867 commit cd1a8ca

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.golangci.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,21 @@ linters:
3333
- examples$
3434
formatters:
3535
enable:
36+
- gci
37+
- gofmt
3638
- gofumpt
3739
- goimports
40+
- golines
3841
settings:
3942
gofumpt:
40-
module-path: github.com/xorcare/testing-go-code-with-postgres
4143
goimports:
42-
local-prefixes:
43-
- github.com/xorcare/testing-go-code-with-postgres
44+
gci:
45+
sections:
46+
- standard
47+
- default
48+
- localmodule
49+
golines:
50+
max-len: 100
4451
exclusions:
4552
generated: lax
4653
paths:

user_repository_with_isolated_schema_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ import (
1414
"github.com/golang-migrate/migrate/v4"
1515
_ "github.com/golang-migrate/migrate/v4/database/postgres"
1616
"github.com/golang-migrate/migrate/v4/source/iofs"
17-
18-
"github.com/xorcare/testing-go-code-with-postgres/migrations"
19-
2017
"github.com/google/uuid"
2118
"github.com/stretchr/testify/require"
2219

2320
rootpkg "github.com/xorcare/testing-go-code-with-postgres"
21+
"github.com/xorcare/testing-go-code-with-postgres/migrations"
2422
"github.com/xorcare/testing-go-code-with-postgres/testingpg"
2523
)
2624

0 commit comments

Comments
 (0)