Skip to content

Commit 50ac9dc

Browse files
authored
fix default timeout value (#1940)
1 parent 3807901 commit 50ac9dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/kb/rules/rule-file-perf-principles.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ files affects scan time more negatively than adding more SCCs.
4343
The time for matching is **number of files * time to match each file**. The time
4444
to check each file can also grow, in the worst case, exponentially, especially
4545
when a rule has a lot of matches in subpatterns. However, the default settings
46-
of `--timeout 30` `--timeout-threshold 3` means that a file times out if:
46+
of `--timeout 5` `--timeout-threshold 3` means that a file times out if:
4747

48-
* 30 seconds elapse without the match process completing
48+
* 5 seconds elapse without the match process completing
4949
* 3 rules time out
5050

5151
You can configure these flags to skip long files after a shorter timeout period

0 commit comments

Comments
 (0)