
Make tests for "ignore" and "exclude" directives. Mark all hidden command-line options as deprecated.
14 lines
344 B
Go
14 lines
344 B
Go
//args: -Edepguard
|
|
//config: linters-settings.depguard.include-go-root=true
|
|
//config: linters-settings.depguard.packages=compress/*,log
|
|
package testdata
|
|
|
|
import (
|
|
"compress/gzip" // ERROR "`compress/gzip` is in the blacklist"
|
|
"log" // ERROR "`log` is in the blacklist"
|
|
)
|
|
|
|
func SpewDebugInfo() {
|
|
log.Println(gzip.BestCompression)
|
|
}
|