From 6fb17e9f6326acfb80bd1980e5c83630f1458da5 Mon Sep 17 00:00:00 2001 From: Josselin Date: Fri, 15 Feb 2019 11:54:38 +0000 Subject: [PATCH] Fix inccorect wiki link to printer Update my_plugin tutorial --- .../slither_my_plugin/detectors/example.py | 15 ++++++++++++--- slither/printers/summary/variables_order.py | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/plugin_example/slither_my_plugin/detectors/example.py b/plugin_example/slither_my_plugin/detectors/example.py index be800abe8..ed850d361 100644 --- a/plugin_example/slither_my_plugin/detectors/example.py +++ b/plugin_example/slither_my_plugin/detectors/example.py @@ -12,8 +12,17 @@ class Example(AbstractDetector): IMPACT = DetectorClassification.HIGH CONFIDENCE = DetectorClassification.HIGH - def detect(self): + WIKI = '' - self.logger('Nothing to detect!') + WIKI_TITLE = '' + WIKI_DESCRIPTION = '' + WIKI_EXPLOIT_SCENARIO = '' + WIKI_RECOMMENDATION = '' - return [] + def _detect(self): + + info = 'This is an example!' + + json = self.generate_json_result(info) + + return [json] diff --git a/slither/printers/summary/variables_order.py b/slither/printers/summary/variables_order.py index e8811dcb6..ba5b86bca 100644 --- a/slither/printers/summary/variables_order.py +++ b/slither/printers/summary/variables_order.py @@ -10,7 +10,7 @@ class VariablesOrder(AbstractPrinter): ARGUMENT = 'variables-order' HELP = 'Print the storage order of the state variables' - WIKI = 'https://github.com/trailofbits/slither/wiki/Printer-documentation#variables-written-and-authorization' + WIKI = 'https://github.com/trailofbits/slither/wiki/Printer-documentation#variables-order' def output(self, _filename): """