Skip to content

Commit

Permalink
build(deps): bump github.com/daixiang0/gci from 0.2.8 to 0.2.9 (#2085)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed Jun 29, 2021
1 parent 38c6baa commit 879821e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/bkielbasa/cyclop v1.2.0
github.com/bombsimon/wsl/v3 v3.3.0
github.com/charithe/durationcheck v0.0.8
github.com/daixiang0/gci v0.2.8
github.com/daixiang0/gci v0.2.9
github.com/denis-tingajkin/go-header v0.4.2
github.com/esimonov/ifshort v1.0.2
github.com/fatih/color v1.12.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion pkg/golinters/gci.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package golinters
import (
"bytes"
"fmt"
"strings"
"sync"

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

var issues []goanalysis.Issue

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

for _, f := range fileNames {
source, result, err := gci.Run(f, &gci.FlagSet{LocalFlag: localFlag})
source, result, err := gci.Run(f, &flagSet)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 879821e

Please sign in to comment.