mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-11 22:08:45 -04:00
Gci: update the way to call Run() (#1337)
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
This commit is contained in:
parent
8e63112ea3
commit
913e57fcda
4 changed files with 23 additions and 8 deletions
test
|
@ -96,7 +96,7 @@ func TestGciLocal(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
testshared.NewLintRunner(t).RunWithYamlConfig(string(cfg), args...).
|
||||
ExpectHasIssue("testdata/gci/gci.go:8: File is not `gci`-ed")
|
||||
ExpectHasIssue("testdata/gci/gci.go:7: File is not `gci`-ed")
|
||||
}
|
||||
|
||||
func saveConfig(t *testing.T, cfg map[string]interface{}) (cfgPath string, finishFunc func()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue