def __init__(self, options: dict) -> None: self.scan_rules = get_rules(options.get('choice_rules')) self.show_progress = options.get('show_progress') self.alternative_path = options.get('alternative_path') exts = options.get('choice_extensions') if exts: self.exts = [ext.lower() for ext in exts] else: self.exts = [] self.findings = {}
def __init__(self, options: dict) -> None: self.matcher = matchers.MatchCommand() self.scan_rules = get_rules(options.get('match_rules')) self.show_progress = options.get('show_progress') exts = options.get('match_extensions') if exts: self.exts = [ext.lower() for ext in exts] else: self.exts = [] self.findings = {}