Skip to content

Commit 63d8674

Browse files
committed
review
1 parent 5967a2e commit 63d8674

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.next.reference.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4091,6 +4091,7 @@ output:
40914091
# Options for analysis running.
40924092
run:
40934093
# Timeout for analysis, e.g. 30s, 5m.
4094+
# If the value is lower or equal to 0, the timeout is disabled.
40944095
# Default: 1m
40954096
timeout: 5m
40964097

pkg/commands/flagsets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func setupRunFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
4949
internal.AddFlagAndBind(v, fs, fs.String, "go", "run.go", "", color.GreenString("Targeted Go version"))
5050
internal.AddHackedStringSlice(fs, "build-tags", color.GreenString("Build tags"))
5151

52-
internal.AddFlagAndBind(v, fs, fs.Duration, "timeout", "run.timeout", defaultTimeout, color.GreenString("Timeout for total work"))
52+
internal.AddFlagAndBind(v, fs, fs.Duration, "timeout", "run.timeout", defaultTimeout, color.GreenString("Timeout for total work. If <= 0, the timeout is disabled"))
5353

5454
internal.AddFlagAndBind(v, fs, fs.Bool, "tests", "run.tests", true, color.GreenString("Analyze tests (*_test.go)"))
5555

0 commit comments

Comments
 (0)