sincecutoff.com
← all changes

semgrep --max-match-context-size limits source context per match

Introduced 2026-06-03 · score 0.95

HOW TO USE IT

When scanning minified source files, pass `--max-match-context-size <characters>` to limit source-code context included for each match. Use `0` for unlimited context, the default.

semgrep scan --max-match-context-size <characters> <path>

WHY THIS HELPS

Limit output context when scanning minified source files.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.165.0
  • --max-match-context-size <characters>: Maximum number of source-code characters included as context for each match in output. `0` means unlimited and is the default.
  • The limit applies to source code included as context for each match in the output.
  • A value of 0 means unlimited and is the default.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card