Skip to content

Commit 5e18365

Browse files
daixiang0ldez
andauthored
build(deps): bump github.com/daixiang0/gci from 0.4.0 to 0.4.1 (#2973)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent ed4befe commit 5e18365

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.golangci.reference.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,13 @@ linters-settings:
343343

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

352354
# Skip generated files.
353355
# Default: true

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/breml/errchkjson v0.3.0
2121
github.com/butuzov/ireturn v0.1.1
2222
github.com/charithe/durationcheck v0.0.9
23-
github.com/daixiang0/gci v0.4.0
23+
github.com/daixiang0/gci v0.4.1
2424
github.com/denis-tingaikin/go-header v0.4.3
2525
github.com/esimonov/ifshort v1.0.4
2626
github.com/fatih/color v1.13.0

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/fix/out/gci.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package gci
55
import (
66
"fmt"
77

8-
"github.com/golangci/golangci-lint/pkg/config"
9-
108
"github.com/pkg/errors"
9+
10+
"github.com/golangci/golangci-lint/pkg/config"
1111
)
1212

1313
func GoimportsLocalTest() {

test/testdata/gci.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package testdata
55
import (
66
"fmt"
77

8-
"github.com/golangci/golangci-lint/pkg/config"
8+
"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"
99

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

1313
func GoimportsLocalTest() {

0 commit comments

Comments
 (0)