Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/writing-rules/rule-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ db_query("SELECT * FROM ...")
db_query("SELECT * FROM ...", verify=True, env="prod")
```

Additionally, `pattern-not` accepts one `pattern` or `patterns` property, which negates the entire `pattern` or `patterns` construction.

### `pattern-inside`

The `pattern-inside` operator keeps matched findings that reside within its expression. This is useful for finding code inside other pieces of code like functions or if blocks.
Expand Down