From 0ff9305aef3b19b4826fc1dd49973d16d8e27367 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 4 Feb 2019 10:57:07 -0500 Subject: [PATCH] Add undefined wiki info to shadowing function detector (close #158) --- slither/detectors/shadowing/shadowing_functions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/slither/detectors/shadowing/shadowing_functions.py b/slither/detectors/shadowing/shadowing_functions.py index d720e848fd..b5d1f8444c 100644 --- a/slither/detectors/shadowing/shadowing_functions.py +++ b/slither/detectors/shadowing/shadowing_functions.py @@ -18,6 +18,15 @@ class ShadowingFunctionsDetection(AbstractDetector): IMPACT = DetectorClassification.LOW CONFIDENCE = DetectorClassification.HIGH + # This detector is not meant to be called as a generic detector + # It's only used by inheritances printers + WIKI = 'undefined' + WIKI_TITLE = 'undefined' + WIKI_DESCRIPTION = 'undefined' + WIKI_EXPLOIT_SCENARIO = 'undefined' + WIKI_RECOMMENDATION = 'undefined' + + def detect_shadowing(self, contract): functions_declared = set([x.full_name for x in contract.functions]) ret = {}