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.
1 parent b832de3 commit 83deb0eCopy full SHA for 83deb0e
errcheck/excludes.go
@@ -47,6 +47,11 @@ var DefaultExcludedSymbols = []string{
47
48
// hash
49
"(hash.Hash).Write",
50
+
51
+ // hash/maphash
52
+ "(*hash/maphash.Hash).Write",
53
+ "(*hash/maphash.Hash).WriteByte",
54
+ "(*hash/maphash.Hash).WriteString",
55
}
56
57
// ReadExcludes reads an excludes file, a newline delimited file that lists
testdata/hash.go
@@ -0,0 +1,11 @@
1
+package main
2
3
+import "hash/maphash"
4
5
6
+func ignoreHashMapReturns() {
7
+ var hasher maphash.Hash
8
+ hasher.Write(nil) // EXCLUDED
9
+ hasher.WriteByte(0) // EXCLUDED
10
+ hasher.WriteString("") // EXCLUDED
11
+}
0 commit comments