MCPcopy Index your code
hub / github.com/nodejs/node / reportIfMissing

Function reportIfMissing

tools/eslint-rules/inspector-check.js:41–58  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

39 }
40
41 function reportIfMissing(context) {
42 if (!hasInspectorCheck) {
43 missingCheckNodes.forEach((node) => {
44 context.report({
45 node,
46 message: msg,
47 fix: (fixer) => {
48 if (commonModuleNode) {
49 return fixer.insertTextAfter(
50 commonModuleNode,
51 '\ncommon.skipIfInspectorDisabled();',
52 );
53 }
54 },
55 });
56 });
57 }
58 }
59
60 return {
61 'CallExpression': (node) => testInspectorUsage(context, node),

Callers 1

createFunction · 0.70

Calls 2

forEachMethod · 0.65
reportMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…