filter_paths
filters results only after running detector
#2026
Labels
enhancement
New feature or request
filter_paths
filters results only after running detector
#2026
The problem:
On projects with large amounts of dependencies and especially in foundry projects (if there are lots of tests/scripts), sometimes it takes a lot of time to run the detectors.
Even though the directory/contracts might be specified in
filter_paths
, the slither first runs the detector on these contracts and filters out only afterward.https://github.com/crytic/slither/blob/977d7bfeabff6ed90faadbe2ee1423bfe04ff5cb/slither/core/slither_core.py#L413C9-L421C1
It seems like we cannot just filter out the contracts from
detector.contracts
, because some detectors might need access to these contracts. However, is it possible to build some kind of dependency graph and filter out the contracts that are not depended on, by the contracts which are not infilter_paths
?Or some kind of
do_not_run
/ignore
parameter, which totally removes the contracts from running detectors?The text was updated successfully, but these errors were encountered: