Skip to content

Commit

Permalink
chore: respect timeout value in .golangci.yaml (#6724)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
knqyf263 authored May 20, 2024
1 parent bbaf595 commit b526e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b526e73

Please sign in to comment.