mirror of
https://github.com/crytic/slither.git
synced 2026-10-12 02:12:39 +00:00
The current example depended on a very old Slither version, and triggered an error due to its empty description, URL, etc. Add example values so the detector can be run.
Slither, Plugin Example
This repository contains an example of plugin for Slither.
See the detector documentation.
Architecture
setup.py: Contain the plugin informationslither_my_plugin/__init__.py: Containmake_plugin(). The function must return the list of new detectors and printersslither_my_plugin/detectors/example.py: Detector plugin skeleton.
Once these files are updated with your plugin, you can install it:
python setup.py develop
We recommend to use a Python virtual environment (for example: virtualenvwrapper).