62 lines
		
	
	
		
			794 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			794 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//golangcitest:args -Ewhitespace
 | 
						|
//golangcitest:config linters-settings.whitespace.multi-if=true
 | 
						|
//golangcitest:config linters-settings.whitespace.multi-func=true
 | 
						|
package p
 | 
						|
 | 
						|
import "fmt"
 | 
						|
 | 
						|
func oneLeadingNewline() {
 | 
						|
 | 
						|
	fmt.Println("Hello world")
 | 
						|
}
 | 
						|
 | 
						|
func oneNewlineAtBothEnds() {
 | 
						|
 | 
						|
	fmt.Println("Hello world")
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
func noNewlineFunc() {
 | 
						|
}
 | 
						|
 | 
						|
func oneNewlineFunc() {
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
func twoNewlinesFunc() {
 | 
						|
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
func noNewlineWithCommentFunc() {
 | 
						|
	// some comment
 | 
						|
}
 | 
						|
 | 
						|
func oneTrailingNewlineWithCommentFunc() {
 | 
						|
	// some comment
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
func oneLeadingNewlineWithCommentFunc() {
 | 
						|
 | 
						|
	// some comment
 | 
						|
}
 | 
						|
 | 
						|
func twoLeadingNewlines() {
 | 
						|
 | 
						|
 | 
						|
	fmt.Println("Hello world")
 | 
						|
}
 | 
						|
 | 
						|
func multiFuncFunc(a int,
 | 
						|
	b int) {
 | 
						|
	fmt.Println("Hello world")
 | 
						|
}
 | 
						|
 | 
						|
func multiIfFunc() {
 | 
						|
	if 1 == 1 &&
 | 
						|
		2 == 2 {
 | 
						|
		fmt.Println("Hello multi-line world")
 | 
						|
	}
 | 
						|
}
 |