github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/nlreturn-block-size.go (about) 1 //golangcitest:args -Enlreturn 2 //golangcitest:config_path testdata/configs/nlreturn.yml 3 package testdata 4 5 func foo0(n int) int { 6 if n == 1 { 7 n2 := n * n 8 return n2 9 } 10 11 return 1 12 } 13 14 func foo1(n int) int { 15 if n == 1 { 16 n2 := n * n 17 n3 := n2 * n 18 return n3 // want "return with no blank line before" 19 } 20 21 return 1 22 }