def get_modules(linter): yield from modules_in_current_dir(__file__, __name__) yield from modules_from_paths(linter.config.ext_rules)
def get_modules(ext_rules): yield from modules_in_current_dir(__file__, __name__) yield from modules_from_paths(ext_rules)