Skip to content

Commit

Permalink
Merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcaciuc committed May 28, 2021
2 parents 35d2ca6 + 98b1bd1 commit 2cfce26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions errcheck/excludes.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ var (
"fmt.Fprintf(os.Stderr)",
"fmt.Fprintln(os.Stderr)",

// io
"(*io.PipeReader).CloseWithError",
"(*io.PipeWriter).CloseWithError",

// math/rand
"math/rand.Read",
"(*math/rand.Rand).Read",
Expand Down
4 changes: 4 additions & 0 deletions testdata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"crypto/sha256"
"fmt"
"io"
"io/ioutil"
"math/rand"
mrand "math/rand"
Expand Down Expand Up @@ -147,6 +148,9 @@ func main() {
rand.Read(nil)
mrand.Read(nil)
sha256.New().Write([]byte{})
pr, pw := io.Pipe()
pr.CloseWithError(nil)
pw.CloseWithError(nil)

ioutil.ReadFile("main.go") // UNCHECKED

Expand Down

0 comments on commit 2cfce26

Please sign in to comment.