> ## 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.

# Rules

> [card] [Change rule severity and other metadata by forking rules](https://docs.semgrep.dev/kb/rules/changing-rule-severity-and-other-metadata.md)
>
> Change rule severity and other metadata by forking rules.

> [card] [Matching multiple tokens with ellipsis metavariables](https://docs.semgrep.dev/kb/rules/ellipsis-metavariables.md)
>
> Ellipsis metavariables can help with matching multiple word tokens.

> [card] [How to exclude certain file types for a particular rule](https://docs.semgrep.dev/kb/rules/exclude_rule_for_certain_filetypes.md)
>
> Exclude file types that generate false positives for a specific rule.

> [card] [Match the absence of something in a file](https://docs.semgrep.dev/kb/rules/match-absence.md)
>
> Approximate absence checks by matching a file and excluding desired content.

> [card] [Match comments with Semgrep](https://docs.semgrep.dev/kb/rules/match-comments.md)
>
> Use generic pattern matching mode to match comments in code files.

> [card] [Fix pattern parse errors when running rules](https://docs.semgrep.dev/kb/rules/pattern-parse-error.md)
>
> Implement rule patterns that include a target language's reserved words.

> [card] [Rule upgrades and supersession](https://docs.semgrep.dev/kb/rules/pro-vs-community-secrets-vs-code-rules.md)
>
> Understand supersession between Community and Pro rules and across products.

> [card] [Performance principles for rules and files to abide by when scanning repositories](https://docs.semgrep.dev/kb/rules/rule-file-perf-principles.md)
>
> Follow rule and file performance principles to optimize scan times.

> [card] [Run all available rules on a repository](https://docs.semgrep.dev/kb/rules/run-all-available-rules.md)
>
> Learn how to run all available rules on your repository.

> [card] [How does Semgrep assign severity levels to rules?](https://docs.semgrep.dev/kb/rules/understand-severities.md)
>
> Understand how rule severity and confidence are determined.

> [card] [My rule with pattern-not doesn't work: using pattern-not-inside](https://docs.semgrep.dev/kb/rules/using-pattern-not-inside.md)
>
> Fix issues with `pattern-not` when excluding cases in custom rules.

> [card] [Use the Semgrep rule schema to write rules in VS Code](https://docs.semgrep.dev/kb/rules/using-semgrep-rule-schema-in-vscode.md)
>
> Use the Semgrep rule schema in VS Code to make rule writing easier.
