Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _parse_rules():
rule_files = _find_rule_files()
checkers = []
for filename in rule_files:
variables = {}
fh = open(filename, "r")
exec(fh.read()+"\n", variables)
fh.close()
rule = CheckingRule(os.path.basename(filename), variables)
checkers.append( rule )
return checkers