1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00
Files
revive/lint/name.go

11 lines
332 B
Go
Raw Normal View History

2018-01-24 15:44:03 -08:00
package lint
2018-01-24 15:17:19 -08:00
import "github.com/mgechev/revive/internal/rule"
2018-01-24 15:17:19 -08:00
2018-01-24 15:44:03 -08:00
// Name returns a different name if it should be different.
//
// Deprecated: Do not use this function, it will be removed in the next major release.
func Name(name string, allowlist, blocklist []string) string {
return rule.Name(name, allowlist, blocklist, false)
2018-01-24 15:17:19 -08:00
}