Skip to content

Commit deb352c

Browse files
committed
Run gci as part of the CI
Signed-off-by: Norman Gehrsitz <norman.gehrsitz@gmx.de>
1 parent 55748a8 commit deb352c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.golangci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ linters-settings:
1212
funlen:
1313
lines: 100
1414
statements: 50
15+
gci:
16+
sections:
17+
- Standard
18+
- Default
19+
- Prefix(github.com/golangci/golangci-lint)
1520
goconst:
1621
min-len: 2
1722
min-occurrences: 3
@@ -71,6 +76,7 @@ linters:
7176
- errcheck
7277
- exportloopref
7378
- funlen
79+
- gci
7480
- gochecknoinits
7581
- goconst
7682
- gocritic

pkg/golinters/ireturn.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package golinters
33
import (
44
"strings"
55

6-
"github.com/golangci/golangci-lint/pkg/config"
7-
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
8-
96
"github.com/butuzov/ireturn/analyzer"
107
"golang.org/x/tools/go/analysis"
8+
9+
"github.com/golangci/golangci-lint/pkg/config"
10+
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
1111
)
1212

1313
func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter {

0 commit comments

Comments
 (0)