We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab17bd commit 54f4301Copy full SHA for 54f4301
pkg/golinters/gci.go
@@ -3,7 +3,6 @@ package golinters
3
import (
4
"bytes"
5
"fmt"
6
- "strings"
7
"sync"
8
9
"github.com/daixiang0/gci/pkg/gci"
@@ -47,9 +46,8 @@ func NewGci() *goanalysis.Linter {
47
46
48
var issues []goanalysis.Issue
49
50
- flagSet := gci.FlagSet{}
51
- if localFlag != "" {
52
- flagSet.LocalFlag = strings.Split(localFlag, ",")
+ flagSet := gci.FlagSet{
+ LocalFlag: gci.ParseLocalFlag(localFlag),
53
}
54
55
for _, f := range fileNames {
0 commit comments