Static Analyzer for Solidity
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.
slither/plugin_example/slither_my_plugin/__init__.py

14 lines
444 B

2 years ago
from typing import Tuple, List, Type
from slither_my_plugin.detectors.example import Example
2 years ago
from slither.detectors.abstract_detector import AbstractDetector
from slither.printers.abstract_printer import AbstractPrinter
2 years ago
def make_plugin() -> Tuple[List[Type[AbstractDetector]], List[Type[AbstractPrinter]]]:
plugin_detectors = [Example]
2 years ago
plugin_printers: List[Type[AbstractPrinter]] = []
return plugin_detectors, plugin_printers