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.
18 lines
688 B
18 lines
688 B
# Slither, Plugin Example
|
|
|
|
This repository contains an example of plugin for Slither.
|
|
|
|
See the [detector documentation](https://github.com/trailofbits/slither/wiki/Adding-a-new-detector).
|
|
|
|
## Architecture
|
|
|
|
- `setup.py`: Contain the plugin information
|
|
- `slither_my_plugin/__init__.py`: Contain `make_plugin()`. The function must return the list of new detectors and printers
|
|
- `slither_my_plugin/detectors/example.py`: Detector plugin skeleton.
|
|
|
|
Once these files are updated with your plugin, you can install it:
|
|
```bash
|
|
python setup.py develop
|
|
```
|
|
|
|
We recommend to use a Python virtual environment (for example: [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/)).
|
|
|