mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-02 01:20:52 -04:00
dev: replace ioutil with io and os (#2318)
This commit is contained in:
parent
e612577dfc
commit
e5cd59a607
21 changed files with 40 additions and 51 deletions
test
|
@ -2,7 +2,6 @@ package test
|
|||
|
||||
import (
|
||||
"bufio"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
|
@ -99,7 +98,7 @@ func TestGciLocal(t *testing.T) {
|
|||
}
|
||||
|
||||
func saveConfig(t *testing.T, cfg map[string]interface{}) (cfgPath string, finishFunc func()) {
|
||||
f, err := ioutil.TempFile("", "golangci_lint_test")
|
||||
f, err := os.CreateTemp("", "golangci_lint_test")
|
||||
require.NoError(t, err)
|
||||
|
||||
cfgPath = f.Name() + ".yml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue