add golangci feature to guarantee codes quality (#2229)

This commit is contained in:
houseme
2022-11-01 20:12:21 +08:00
committed by GitHub
parent 8e0e87877a
commit 1793bf0863
255 changed files with 1123 additions and 690 deletions

View File

@ -30,7 +30,7 @@ var (
func init() {
if goRootForFilter != "" {
goRootForFilter = strings.Replace(goRootForFilter, "\\", "/", -1)
goRootForFilter = strings.ReplaceAll(goRootForFilter, "\\", "/")
}
// Initialize internal package variable: selfPath.
selfPath, _ = exec.LookPath(os.Args[0])

View File

@ -44,7 +44,7 @@ func StackWithFilters(filters []string, skip ...int) string {
number = skip[0]
}
var (
name = ""
name string
space = " "
index = 1
buffer = bytes.NewBuffer(nil)