MCPcopy Create free account
hub / github.com/nodejs/node / collect_rules

Function collect_rules

deps/v8/third_party/abseil-cpp/absl/abseil.podspec.gen.py:111–118  ·  view source on GitHub ↗

Collects and returns all rules from root path recursively.

(root_path)

Source from the content-addressed store, hash-verified

109
110
111def collect_rules(root_path):
112 """Collects and returns all rules from root path recursively."""
113 rules = []
114 for cur, _, _ in os.walk(root_path):
115 build_path = os.path.join(cur, "BUILD.bazel")
116 if os.path.exists(build_path):
117 rules.extend(read_build("//" + cur))
118 return rules
119
120
121def relevant_rule(rule):

Callers 1

generateFunction · 0.85

Calls 5

read_buildFunction · 0.85
walkMethod · 0.80
joinMethod · 0.45
existsMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected