mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
Co-authored-by: akrenzler <akrenzler@paloaltonetworks@com> Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
11 lines
332 B
Go
11 lines
332 B
Go
package lint
|
|
|
|
import "github.com/mgechev/revive/internal/rule"
|
|
|
|
// 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)
|
|
}
|