1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-10 03:17:11 +02:00
revive/fixtures/get-return.go
chavacava f8c1094ecd New rule: get-return (#23)
* 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

* clean master

* running version

* isGetter now checks for non lowercase characters
2018-06-22 21:21:09 +10:00

30 lines
546 B
Go

package fixtures
func getfoo() {
}
func getBar(a, b int) { // MATCH /function 'getBar' seems to be a getter but it does not return any result/
}
func Getbaz(a string, b int) {
}
func GetTaz(a string, b int) string {
}
func (t *t) GetTaz(a string, b int) string {
}
func (t *t) GetSaz(a string, b int) { // MATCH /function 'GetSaz' seems to be a getter but it does not return any result/
}
func GetQux(a string, b int, c int, d string, e int64) { // MATCH /function 'GetQux' seems to be a getter but it does not return any result/
}