MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / create

Function create

scripts/oxlint-plugin-executor/rules/no-raw-fetch.js:47–63  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

45 },
46 },
47 create(context) {
48 if (!shouldCheck(context.filename)) return {};
49
50 return {
51 CallExpression(node) {
52 if (isBareFetchCall(node.callee) || isGlobalFetchMember(node.callee)) {
53 context.report({ node: node.callee, message });
54 }
55 },
56 MemberExpression(node) {
57 if (node.parent?.type === "CallExpression" && node.parent.callee === node) return;
58 if (isGlobalFetchMember(node)) {
59 context.report({ node, message });
60 }
61 },
62 };
63 },
64};

Callers

nothing calls this directly

Calls 1

shouldCheckFunction · 0.70

Tested by

no test coverage detected