--verbose
- Accepted by
opengrep scan,opengrep ci,opengrep test,opengrep validate,opengrep show,opengrep lsp- Also spelled
-v
Raises the log level on standard error from warning to info: the logs show which rules were loaded and from where, how many targets were found, which files were skipped and why, and the other steps of the run. The findings on standard output do not change.
Each log line starts with the time since the start and its level, as in [00.04][INFO]: Getting the rules.
--debug logs more detail, and --quiet suppresses standard error.
Examples
What the scan is doing
rule.yaml
rules: - id: find-eval pattern: eval(...) message: found eval languages: [python] severity: WARNINGapp.py
eval(1)Command and result
$ opengrep scan --config rule.yaml --verbose app.py 2>&1 >/dev/null | head -3
[00.04][INFO]: Opengrep version: X.Y.Z
[00.04][INFO]: Getting the rules
[00.04][INFO]: loading local config from rule.yaml