16 lines
		
	
	
		
			438 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			438 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //golangcitest:args -Eforbidigo
 | |
| //golangcitest:config_path testdata/configs/forbidigo.yml
 | |
| package testdata
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	fmt2 "fmt"
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| func Forbidigo() {
 | |
| 	fmt.Printf("too noisy!!!")  // want "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
 | |
| 	fmt2.Printf("too noisy!!!") // Not detected because analyze-types is false by default for backward compatbility.
 | |
| 	time.Sleep(time.Nanosecond) // want "no sleeping!"
 | |
| }
 | 
