gci: Parse the settings more similarly to the cli (#2217)
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / tests-on-unix (1.17) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / tests-on-unix (1.17) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
This commit is contained in:
parent
4ab17bde5c
commit
54f4301ddf
@ -3,7 +3,6 @@ package golinters
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/daixiang0/gci/pkg/gci"
|
||||
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user