Skip to content

Commit 827dcdf

Browse files
committed
enabled gci
1 parent fd8aa33 commit 827dcdf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.golangci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ linters-settings:
6464
# put imports beginning with prefix after 3rd-party packages;
6565
# it's a comma-separated list of prefixes
6666
local-prefixes: github.com/ydb-platform/ydb-go-sdk/v3
67+
gci:
68+
sections:
69+
- standard # Standard section: captures all standard packages.
70+
- default # Default section: contains all imports that could not be matched to another section type.
71+
- prefix(github.com/ydb-platform/ydb-go-sdk/v3) # Custom section: groups all imports with the specified Prefix.
72+
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
73+
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
74+
skip-generated: true
6775
goconst:
6876
# minimal length of string constant, 3 by default
6977
min-len: 2
@@ -220,7 +228,6 @@ linters:
220228
- forbidigo
221229
- forcetypeassert
222230
- funlen
223-
- gci
224231
- gochecknoglobals
225232
- gocognit
226233
- godot

internal/cmd/gtrace/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ import (
1616
"os"
1717
"path/filepath"
1818
"strings"
19-
_ "unsafe" // For go:linkname.
2019

2120
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors"
21+
22+
_ "unsafe" // For go:linkname.
2223
)
2324

2425
//go:linkname build_goodOSArchFile go/build.(*Context).goodOSArchFile

0 commit comments

Comments
 (0)