Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (path) => {
log(rule, path.node);
if (nodesExclude.length && compareAny(path, nodesExclude))
return;
if (nodesInclude.length && !compareAll(path, nodesInclude))
return;
fn(path);
};
}