mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
chore: respect timeout value in .golangci.yaml (#6724)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user