mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
484 B
14 lines
484 B
import inspect
|
|
from slither import Slither
|
|
from slither.detectors import all_detectors
|
|
from slither.detectors.abstract_detector import AbstractDetector
|
|
|
|
|
|
def _run_all_detectors(slither: Slither) -> None:
|
|
detectors = [getattr(all_detectors, name) for name in dir(all_detectors)]
|
|
detectors = [d for d in detectors if inspect.isclass(d) and issubclass(d, AbstractDetector)]
|
|
|
|
for detector in detectors:
|
|
slither.register_detector(detector)
|
|
|
|
slither.run_detectors()
|
|
|