github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/exhaustive_ignore_enum_members.go (about) 1 //golangcitest:args -Eexhaustive 2 //golangcitest:config_path testdata/configs/exhaustive_ignore_enum_members.yml 3 package testdata 4 5 type Direction int 6 7 const ( 8 North Direction = iota 9 East 10 South 11 West 12 ) 13 14 // Should only report East as missing because the enum member West is ignored 15 // using the ignore-enum-members setting. 16 17 func processDirectionIgnoreEnumMembers(d Direction) { 18 switch d { // want "missing cases in switch of type Direction: East" 19 case North, South: 20 } 21 }