crytic / crytic/slither

Filter paths before parsing and lowering AST when possible

Open
#2,421 2 comments 0 reactions 0 assignees View on GitHub
enhancement High Priority
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the issue:

When we filter out a file through --filter-paths, Slither still wastes time analyzing that file, and only skips returning the results for it.
Is this not a bug?

### Code example to reproduce the issue:

Not needed.

### Version:

0.10.2

### Relevant log output:

_No response_

Contributor guide

Open the contributing guide

Research direction

Trace the --filter-paths handling through Slither's analysis pipeline, focusing on where files are parsed and their ASTs lowered. Verify the current behavior and add coverage showing that excluded files are skipped before those stages, while retained files continue to produce results.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.