mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
fix: disable specific staticcheck rules and update lint config (#4396)
fix: disable specific staticcheck rules and update lint config - Disabled staticcheck rules SA1029, SA1019, S1000, and related checks in `.golangci.yml` to filter out unwanted linter errors. - Updated staticcheck checks list for more precise linting control. - Clarified configuration for easier maintenance and future updates. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: hailaz <739476267@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -67,7 +67,7 @@ func StackWithFilters(filters []string, skip ...int) string {
|
||||
if index > 9 {
|
||||
space = " "
|
||||
}
|
||||
buffer.WriteString(fmt.Sprintf("%d.%s%s\n %s:%d\n", index, space, name, file, line))
|
||||
fmt.Fprintf(buffer, "%d.%s%s\n %s:%d\n", index, space, name, file, line)
|
||||
index++
|
||||
} else {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user