Skip to content

Commit 1c06f4f

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/daixiang0/gci from 0.2.8 to 0.2.9 (golangci#2085)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 10d782c commit 1c06f4f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/bkielbasa/cyclop v1.2.0
1414
github.com/bombsimon/wsl/v3 v3.3.0
1515
github.com/charithe/durationcheck v0.0.8
16-
github.com/daixiang0/gci v0.2.8
16+
github.com/daixiang0/gci v0.2.9
1717
github.com/denis-tingajkin/go-header v0.4.2
1818
github.com/esimonov/ifshort v1.0.2
1919
github.com/fatih/color v1.12.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/gci.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package golinters
33
import (
44
"bytes"
55
"fmt"
6+
"strings"
67
"sync"
78

89
"github.com/daixiang0/gci/pkg/gci"
@@ -46,8 +47,13 @@ func NewGci() *goanalysis.Linter {
4647

4748
var issues []goanalysis.Issue
4849

50+
flagSet := gci.FlagSet{}
51+
if localFlag != "" {
52+
flagSet.LocalFlag = strings.Split(localFlag, ",")
53+
}
54+
4955
for _, f := range fileNames {
50-
source, result, err := gci.Run(f, &gci.FlagSet{LocalFlag: localFlag})
56+
source, result, err := gci.Run(f, &flagSet)
5157
if err != nil {
5258
return nil, err
5359
}

0 commit comments

Comments
 (0)