MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / load_all_rules

Function load_all_rules

src/tasks.py:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68def load_all_rules():
69 result = []
70 for file in os.listdir("rules"):
71 if file.endswith(".yml"):
72 result.append(
73 yaml.load(open(os.path.join("rules", file), "r"), Loader=yaml.FullLoader))
74 return result
75
76
77def compile_project(abs_path:str):

Callers 1

simple_cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected