reference Flags

--dynamic-timeout-max-multiplier

Accepted by
opengrep scan, opengrep ci
Value
INT
Default
20
See also
--dynamic-timeout, --dynamic-timeout-unit-kb, --timeout, --allow-rule-timeout-control, dynamic_timeout_max_multiplier

Limits the multiplier that --dynamic-timeout computes from the size of a file. With the default of 20 and a --timeout of 5 seconds, no rule spends more than 100 seconds on a file, regardless of its size.

The multiplier reaches this limit for files whose size in KB is at least this value times --dynamic-timeout-unit-kb: 600 KB with both defaults.

The flag has no effect unless --dynamic-timeout is given, or a rule sets the option dynamic_timeout and the scan allows it with --allow-rule-timeout-control.

Examples

A lower maximum multiplier

Command
$ opengrep scan -q --config rules/ --dynamic-timeout --dynamic-timeout-max-multiplier 4 .