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

refactor: removes get from getters names (#1373)

This commit is contained in:
chavacava
2025-05-24 19:03:05 +02:00
committed by GitHub
parent f531af3b48
commit 94cd7bdec2
7 changed files with 24 additions and 10 deletions

View File

@@ -101,24 +101,24 @@ var (
var originalUsage = flag.Usage
func getLogo() string {
func logo() string {
return color.YellowString(` _ __ _____ _(_)__ _____
| '__/ _ \ \ / / \ \ / / _ \
| | | __/\ V /| |\ V / __/
|_| \___| \_/ |_| \_/ \___|`)
}
func getCall() string {
func call() string {
return color.MagentaString("revive -config c.toml -formatter friendly -exclude a.go -exclude b.go ./...")
}
func getBanner() string {
func banner() string {
return fmt.Sprintf(`
%s
Example:
%s
`, getLogo(), getCall())
`, logo(), call())
}
func buildDefaultConfigPath() string {
@@ -150,7 +150,7 @@ func initConfig() {
}
flag.Usage = func() {
fmt.Println(getBanner())
fmt.Println(banner())
originalUsage()
}