Exclude paths from analysis
statica_scope_excludeExclude specified files or directories from STATIC analysis by adding exact, non-glob paths to the current exclusion list.
Instructions
Exclude files or directories from analysis. Adds to the current list. Real paths only (no globs); if any path is missing nothing is written (NO_SUCH_PATH). Headers cannot be excluded (NOT_ANALYZABLE). Defects already on the server stay until the next full analysis; when reporting later counts, say they changed because the scope changed, not the code. Confirm the exact paths with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>",
"paths": "<paths>"
},
"name": "statica_scope_exclude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Paths relative to the project or absolute. File or directory is detected from disk. | |
| projectDir | Yes | Absolute path of the project directory being analyzed (usually the session's working directory). |