chore: respect timeout value in .golangci.yaml (#6724)

Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Teppei Fukuda
2024-05-20 14:01:25 +04:00
committed by GitHub
parent bbaf5952bc
commit b526e73d88

View File

@@ -314,13 +314,13 @@ type Lint mg.Namespace
// Run runs linters
func (Lint) Run() error {
mg.Deps(Tool{}.GolangciLint)
return sh.RunV("golangci-lint", "run", "--timeout", "5m")
return sh.RunV("golangci-lint", "run")
}
// Fix auto fixes linters
func (Lint) Fix() error {
mg.Deps(Tool{}.GolangciLint)
return sh.RunV("golangci-lint", "run", "--timeout", "5m", "--fix")
return sh.RunV("golangci-lint", "run", "--fix")
}
// Fmt formats Go code and proto files