Skip to content

Commit

Permalink
build(deps): bump github.com/daixiang0/gci from 0.4.0 to 0.4.1 (golan…
Browse files Browse the repository at this point in the history
…gci#2973)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
2 people authored and SeigeC committed Apr 4, 2023
1 parent 144c82e commit 6d23b1b
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
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
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
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
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 6d23b1b

Please sign in to comment.