We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35d2ca6 + 98b1bd1 commit 2cfce26Copy full SHA for 2cfce26
errcheck/excludes.go
@@ -33,6 +33,10 @@ var (
33
"fmt.Fprintf(os.Stderr)",
34
"fmt.Fprintln(os.Stderr)",
35
36
+ // io
37
+ "(*io.PipeReader).CloseWithError",
38
+ "(*io.PipeWriter).CloseWithError",
39
+
40
// math/rand
41
"math/rand.Read",
42
"(*math/rand.Rand).Read",
testdata/main.go
@@ -4,6 +4,7 @@ import (
4
"bytes"
5
"crypto/sha256"
6
"fmt"
7
+ "io"
8
"io/ioutil"
9
"math/rand"
10
mrand "math/rand"
@@ -147,6 +148,9 @@ func main() {
147
148
rand.Read(nil)
149
mrand.Read(nil)
150
sha256.New().Write([]byte{})
151
+ pr, pw := io.Pipe()
152
+ pr.CloseWithError(nil)
153
+ pw.CloseWithError(nil)
154
155
ioutil.ReadFile("main.go") // UNCHECKED
156
0 commit comments