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.
27 lines
667 B
27 lines
667 B
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification
|
|
|
|
|
|
class Example(AbstractDetector): # pylint: disable=too-few-public-methods
|
|
"""
|
|
Documentation
|
|
"""
|
|
|
|
ARGUMENT = "mydetector" # slither will launch the detector with slither.py --mydetector
|
|
HELP = "Help printed by slither"
|
|
IMPACT = DetectorClassification.HIGH
|
|
CONFIDENCE = DetectorClassification.HIGH
|
|
|
|
WIKI = ""
|
|
|
|
WIKI_TITLE = ""
|
|
WIKI_DESCRIPTION = ""
|
|
WIKI_EXPLOIT_SCENARIO = ""
|
|
WIKI_RECOMMENDATION = ""
|
|
|
|
def _detect(self):
|
|
|
|
info = "This is an example!"
|
|
|
|
json = self.generate_result(info)
|
|
|
|
return [json]
|
|
|