reference Flags

--max-log-list-entries

Accepted by
opengrep scan, opengrep ci
Value
INT
Default
100
See also
--verbose, --quiet, --max-lines-per-finding

The logs contain lists, such as the rules that run and the files that were skipped, with the reasons. A list with more items than this is replaced by a note. Zero or a negative value removes the limit.

The flag affects only the logs on standard error, not the findings.

Examples

A list that is too long to show

rules.yaml
rules:  - id: r1    pattern: eval(...)    message: m    languages: [python]    severity: INFO  - id: r2    pattern: exec(...)    message: m    languages: [python]    severity: INFO  - id: r3    pattern: print(...)    message: m    languages: [python]    severity: INFO
app.py
eval(1)
Command and result
$ opengrep scan --config rules.yaml --verbose app.py 2>&1 >/dev/null | grep -A3 '^Rules:'
Rules:
- r1
- r2
- r3
$ opengrep scan --config rules.yaml --verbose --max-log-list-entries 2 app.py 2>&1 >/dev/null | grep -A1 '^Rules:'
Rules:
<SKIPPED DATA (too many entries; adjust with --max-log-list-entries)>