Skip to content

Commit 8def889

Browse files
author
Thirukumaran Vaseeharan
committed
add fix tests for gci
1 parent cb1b272 commit 8def889

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

test/testdata/fix/in/gci.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//args: -Egci
2+
//config_path: testdata/configs/gci.yml
3+
package gci
4+
5+
import (
6+
"github.com/golangci/golangci-lint/pkg/config"
7+
"github.com/pkg/errors"
8+
"fmt"
9+
)
10+
11+
func GoimportsLocalTest() {
12+
fmt.Print("x")
13+
_ = config.Config{}
14+
_ = errors.New("")
15+
}

test/testdata/fix/out/gci.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//args: -Egci
2+
//config_path: testdata/configs/gci.yml
3+
package gci
4+
5+
import (
6+
"fmt"
7+
8+
"github.com/golangci/golangci-lint/pkg/config"
9+
10+
"github.com/pkg/errors"
11+
)
12+
13+
func GoimportsLocalTest() {
14+
fmt.Print("x")
15+
_ = config.Config{}
16+
_ = errors.New("")
17+
}

0 commit comments

Comments
 (0)