golangci-lint/test/testdata/exhaustive_default.go
Nishanth Shanmugham f3376cab71
add exhaustive linter (#1166)
* wip

more

add new files

run command fixes

more

* go.mod

* order

* same package

* review comment

* enable linter in .golangci.yml

* add testcase for default-signifies-exhaustive: true

* adjust runGoErrchk instead

* disable the linter

* cleanup

* more cleanup

* cleanup
2020-05-29 16:31:46 +03:00

20 lines
251 B
Go

//args: -Eexhaustive
//config_path: testdata/configs/exhaustive.yml
package testdata
type Direction int
const (
North Direction = iota
East
South
West
)
func processDirectionDefault(d Direction) {
switch d {
case North, South:
default:
}
}