 609de3254c
			
		
	
	
		609de3254c
		
	
	
	
	
		
			
			Make tests for "ignore" and "exclude" directives. Mark all hidden command-line options as deprecated.
		
			
				
	
	
		
			18 lines
		
	
	
		
			321 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			321 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //args: -Eerrcheck
 | |
| //config: linters-settings.errcheck.check-blank=true
 | |
| package testdata
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"os"
 | |
| )
 | |
| 
 | |
| func TestErrcheckIgnoreFmtByDefault(s string) int {
 | |
| 	n, _ := fmt.Println(s)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func TestErrcheckNoIgnoreOs() {
 | |
| 	_, _ = os.Open("f.txt") // ERROR "Error return value of `os.Open` is not checked"
 | |
| }
 |