Skip to content

Commit

Permalink
build(deps): bump github.com/daixiang0/gci from 0.4.0 to 0.4.1 (#2973)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
daixiang0 and ldez authored Jul 11, 2022
1 parent ed4befe commit 5e18365
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,13 @@ linters-settings:

# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
# The order of sections is always `standard > default > custom`,
# it cannot be changed and doesn't follow the order of `sections` option.
# Default: ["standard", "default"]
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/org/project) # Groups all imports with the specified Prefix.
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/org/project) # Custom section: groups all imports with the specified Prefix.

# Skip generated files.
# Default: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/breml/errchkjson v0.3.0
github.com/butuzov/ireturn v0.1.1
github.com/charithe/durationcheck v0.0.9
github.com/daixiang0/gci v0.4.0
github.com/daixiang0/gci v0.4.1
github.com/denis-tingaikin/go-header v0.4.3
github.com/esimonov/ifshort v1.0.4
github.com/fatih/color v1.13.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.

4 changes: 2 additions & 2 deletions test/testdata/fix/out/gci.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package gci
import (
"fmt"

"github.com/golangci/golangci-lint/pkg/config"

"github.com/pkg/errors"

"github.com/golangci/golangci-lint/pkg/config"
)

func GoimportsLocalTest() {
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/gci.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package testdata
import (
"fmt"

"github.com/golangci/golangci-lint/pkg/config"
"github.com/golangci/golangci-lint/pkg/config" // ERROR "File is not \\`gci\\`-ed with -skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"

"github.com/pkg/errors"
"github.com/pkg/errors" // ERROR "File is not \\`gci\\`-ed with -skip-generated -s standard,prefix\\(github.com/golangci/golangci-lint\\),default"
)

func GoimportsLocalTest() {
Expand Down

0 comments on commit 5e18365

Please sign in to comment.