mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
10aecb0e65
2 changed files with 9 additions and 3 deletions
|
@ -2,7 +2,6 @@ package local
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -23,7 +22,7 @@ func TestDecode(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func testDecode(t *testing.T, buf []byte, split int) {
|
func testDecode(t *testing.T, buf []byte, split int) {
|
||||||
fw, err := ioutil.TempFile("", t.Name())
|
fw, err := os.CreateTemp("", t.Name())
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
defer os.Remove(fw.Name())
|
defer os.Remove(fw.Name())
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- deadcode
|
- deadcode
|
||||||
|
- depguard
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
- golint
|
||||||
- gosec
|
- gosec
|
||||||
|
@ -31,7 +32,13 @@ linters:
|
||||||
linters-settings:
|
linters-settings:
|
||||||
govet:
|
govet:
|
||||||
check-shadowing: false
|
check-shadowing: false
|
||||||
|
depguard:
|
||||||
|
list-type: blacklist
|
||||||
|
include-go-root: true
|
||||||
|
packages:
|
||||||
|
# The io/ioutil package has been deprecated.
|
||||||
|
# https://go.dev/doc/go1.16#ioutil
|
||||||
|
- io/ioutil
|
||||||
issues:
|
issues:
|
||||||
# The default exclusion rules are a bit too permissive, so copying the relevant ones below
|
# The default exclusion rules are a bit too permissive, so copying the relevant ones below
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue