golangci-lint/test/testdata/exhaustive_default.go
nishanths 58234f055c
update exhaustive to latest; use version in go.mod (#1449)
* update exhaustive to latest

* wip

* update dep

* update flag name

* use versioned dep

* add tests

* unused file

* no need config file

* add vars to test

* test comment

* remove default settings
2020-10-14 08:19:06 +02:00

20 lines
259 B
Go

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