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

Function report

tools/eslint-rules/crypto-check.js:98–115  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

96 }
97
98 function report(nodes) {
99 nodes.forEach((node) => {
100 context.report({
101 node,
102 message: msg,
103 fix: (fixer) => {
104 if (commonModuleNode) {
105 return fixer.insertTextAfter(
106 commonModuleNode,
107 '\nif (!common.hasCrypto) {' +
108 ' common.skip("missing crypto");' +
109 '}',
110 );
111 }
112 },
113 });
114 });
115 }
116
117 return {
118 'CallExpression': (node) => testCryptoUsage(node),

Callers 1

reportIfMissingCheckFunction · 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…