mirror of
https://github.com/mgechev/revive.git
synced 2025-01-10 03:17:11 +02:00
f8c1094ecd
* 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
30 lines
546 B
Go
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/
|
|
|
|
}
|