MCPcopy Create free account
hub / github.com/alibaba/open-code-review / readJsonOrNull

Function readJsonOrNull

scripts/github-actions/check-plugin-contract.js:762–768  ·  view source on GitHub ↗
(repoRoot, file)

Source from the content-addressed store, hash-verified

760}
761
762function readJsonOrNull(repoRoot, file) {
763 try {
764 return JSON.parse(fs.readFileSync(path.join(repoRoot, file), "utf8"));
765 } catch (e) {
766 return null;
767 }
768}
769
770// Depth-first walk yielding repo-relative paths of candidate text files.
771//

Callers 1

runManifestsCheckFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected