mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-13 14:58:45 -04:00
15 lines
386 B
Go
15 lines
386 B
Go
|
//golangcitest:args -Ereassign
|
||
|
//golangcitest:config_path testdata/configs/reassign_patterns.yml
|
||
|
package testdata
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func reassignTestPatterns() {
|
||
|
http.DefaultClient = nil // want `reassigning variable DefaultClient in other package http`
|
||
|
http.DefaultTransport = nil // want `reassigning variable DefaultTransport in other package http`
|
||
|
io.EOF = nil
|
||
|
}
|