Dont show the backdoor detector example in --list-detectors

pull/62/head
Josselin 6 years ago
parent c218730783
commit 519a8698db
  1. 3
      slither/utils/command_line.py

@ -43,6 +43,9 @@ def output_detectors(detector_classes):
detectors_list = [] detectors_list = []
for detector in detector_classes: for detector in detector_classes:
argument = detector.ARGUMENT argument = detector.ARGUMENT
# dont show the backdoor example
if argument == 'backdoor':
continue
help_info = detector.HELP help_info = detector.HELP
impact = detector.IMPACT impact = detector.IMPACT
confidence = classification_txt[detector.CONFIDENCE] confidence = classification_txt[detector.CONFIDENCE]

Loading…
Cancel
Save