Documentation Index
Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
Use this file to discover all available pages before exploring further.
Change rule severity and other metadata by forking rules
Change rule severity and other metadata by forking rules.
Matching multiple tokens with ellipsis metavariables
Ellipsis metavariables can help with matching multiple word tokens.
How to exclude certain file types for a particular rule
Exclude file types that generate false positives for a specific rule.
Match the absence of something in a file
Approximate absence checks by matching a file and excluding desired content.
Match comments with Semgrep
Use generic pattern matching mode to match comments in code files.
Fix pattern parse errors when running rules
Implement rule patterns that include a target language’s reserved words.
Rule upgrades and supersession
Understand supersession between Community and Pro rules and across products.
Performance principles for rules and files to abide by when scanning repositories
Follow rule and file performance principles to optimize scan times.
Why do new rules keep appearing in Comment or Block mode?
Change the default mode for a ruleset.
Run all available rules on a repository
Learn how to run all available rules on your repository.
How does Semgrep assign severity levels to rules?
Understand how rule severity and confidence are determined.
My rule with pattern-not doesn't work: using pattern-not-inside
Fix issues with
pattern-not when excluding cases in custom rules.Use the Semgrep rule schema to write rules in VS Code
Use the Semgrep rule schema in VS Code to make rule writing easier.