Skip to content

Commit

Permalink
gci: Parse the settings more similarly to the cli (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Sep 4, 2021
1 parent 4ab17bd commit 54f4301
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/golinters/gci.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package golinters
import (
"bytes"
"fmt"
"strings"
"sync"

"github.com/daixiang0/gci/pkg/gci"
Expand Down Expand Up @@ -47,9 +46,8 @@ func NewGci() *goanalysis.Linter {

var issues []goanalysis.Issue

flagSet := gci.FlagSet{}
if localFlag != "" {
flagSet.LocalFlag = strings.Split(localFlag, ",")
flagSet := gci.FlagSet{
LocalFlag: gci.ParseLocalFlag(localFlag),
}

for _, f := range fileNames {
Expand Down

0 comments on commit 54f4301

Please sign in to comment.