1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/fixtures/confusing-results.go
chavacava b8eababb0d New rule: confusing-results (#27)
* Adds rule superfluous-else (an extension of indent-error-flow)

* Fix superfluous-else rule struct namming.

* Adds superfuous-else rule to the rules table

* Adds confusing-naming rule

* adds multifile test

* clean-up

* fix config.go

* confusing-results working version
2018-07-02 12:09:58 +10:00

21 lines
431 B
Go

package fixtures
func getfoo() (int, int, error) { // MATCH /unnamed results of the same type may be confusing, consider using named results/
}
func getBar(a, b int) (int, error, int) {
}
func Getbaz(a string, b int) (int, float32, string, string) { // MATCH /unnamed results of the same type may be confusing, consider using named results/
}
func GetTaz(a string, b int) string {
}
func (t *t) GetTaz(a int, b int) {
}