Skip to content

Commit 36881ef

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

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.golangci.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
$scheme: https://raw.githubusercontent.com/golangci/golangci-lint/refs/heads/main/jsonschema/golangci.v2.0.jsonschema.json
23
version: "2"
34
linters:
45
default: none
@@ -33,14 +34,21 @@ linters:
3334
- examples$
3435
formatters:
3536
enable:
37+
- gci
38+
- gofmt
3639
- gofumpt
3740
- goimports
41+
- golines
3842
settings:
3943
gofumpt:
40-
module-path: github.com/xorcare/testing-go-code-with-postgres
4144
goimports:
42-
local-prefixes:
43-
- github.com/xorcare/testing-go-code-with-postgres
45+
gci:
46+
sections:
47+
- standard
48+
- default
49+
- localmodule
50+
golines:
51+
max-len: 100
4452
exclusions:
4553
generated: lax
4654
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)