--dynamic-timeout-unit-kb
- Accepted by
opengrep scan,opengrep ci- Value
INT- Default
30
Sets the unit of the scaling done by --dynamic-timeout: the multiplier applied to --timeout is the size of the file in KB divided by this number, no less than 1 and no more than --dynamic-timeout-max-multiplier.
With the default of 30, a file of 30 KB gets one timeout, and a file of 120 KB four. A smaller unit gives large files more time; a larger unit keeps the limit closer to --timeout for all but the largest files.
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 smaller unit gives longer limits
Command
$ opengrep scan -q --config rules/ --dynamic-timeout --dynamic-timeout-unit-kb 10 .