Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gocritic 3.3 warning typeSwitchVar #44

Closed
kveselkov opened this issue Oct 1, 2018 · 0 comments
Closed

Gocritic 3.3 warning typeSwitchVar #44

kveselkov opened this issue Oct 1, 2018 · 0 comments

Comments

@kveselkov
Copy link
Contributor

Find using https://go-critic.github.io/overview#typeSwitchVar-ref

$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 0 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 1 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 2 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 3 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 4 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 5 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 6 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 7 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 8 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 9 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 10 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 11 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 12 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 13 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 14 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:183:2: typeSwitchVar: case 15 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 0 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 1 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 2 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 3 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 4 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 5 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 6 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 7 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 8 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 9 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 10 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 11 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 12 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 13 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 14 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/roller.go:198:6: typeSwitchVar: case 15 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 1 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 2 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 3 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 4 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 5 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 6 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 7 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 8 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 9 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 10 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 11 can benefit from type switch with assignment
$GOPATH/src/github.com/thedevsaddam/govalidator/rules.go:230:3: typeSwitchVar: case 12 can benefit from type switch with assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants