diff --git a/.golangci.yml b/.golangci.yml index 911fc54ef1..914cc5c02f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,7 @@ +run: + skip-dirs: + - .tmp + linters: fast: true enable: @@ -20,3 +24,12 @@ issues: - linters: - staticcheck text: "SA4000:" + + - path: listen(_no)?_reuseport\.go + linters: + - typecheck + text: "declar" + + - linters: + - typecheck + text: "could not import C" diff --git a/.lefthook/pre-commit/lint b/.lefthook/pre-commit/lint index 0b20ba8215..c1afee6da4 100755 --- a/.lefthook/pre-commit/lint +++ b/.lefthook/pre-commit/lint @@ -7,4 +7,4 @@ fi export CGO_LDFLAGS_ALLOW="-s|-w" export CGO_CFLAGS_ALLOW="-Xpreprocessor" -golangci-lint run +golangci-lint run ./*.go diff --git a/ico_data.go b/ico_data.go index 1f3e590437..1043942e31 100644 --- a/ico_data.go +++ b/ico_data.go @@ -18,7 +18,7 @@ func icoData(data []byte) (out []byte, width int, height int, err error) { // Ensure that image is in RGBA format rgba := image.NewRGBA(ico.Bounds()) - draw.Draw(rgba, ico.Bounds(), ico, image.ZP, draw.Src) + draw.Draw(rgba, ico.Bounds(), ico, image.Point{}, draw.Src) width = rgba.Bounds().Dx() height = rgba.Bounds().Dy()