MCPcopy
hub / github.com/compodoc/compodoc / loop

Function loop

tools/ngd-graphs.js:305–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 regStatModules = /(module : )(\d+)/,
304 regStatComponents = /(component : )(\d+)/,
305 loop = () => {
306 if (i < len) {
307 clone(GIT_REPOSITORIES[i]).then(() => {
308 console.log(`Repository ${GIT_REPOSITORIES[i].name} cloned`);
309 generateGraph(GIT_REPOSITORIES[i]).then(
310 (stdout, stderr) => {
311 console.log('');
312 console.log(` Graph ${GIT_REPOSITORIES[i].name} OK`);
313 if (stdout && stdout.match(reg)) {
314 printStat(stdout);
315 GIT_REPOSITORIES[i].filesLength = stdout.match(reg).length;
316 }
317 console.log('');
318 i++;
319 loop();
320 },
321 (stdout, stderr) => {
322 console.log('');
323 console.error(` Graph ${GIT_REPOSITORIES[i].name} KO`);
324 if (stdout && stdout.match(reg)) {
325 printStat(stdout);
326 GIT_REPOSITORIES[i].filesLength = stdout.match(reg).length;
327 }
328 console.log('');
329 failedRepositories.push(GIT_REPOSITORIES[i].name);
330 i++;
331 loop();
332 }
333 );
334 });
335 } else {
336 console.log('End processing projects');
337 console.log('');
338
339 if (failedRepositories.length > 0) {
340 console.log('Failed repositories: ', failedRepositories);
341 console.log('');
342 process.exit(1);
343 } else {
344 process.exit(0);
345 }
346 }
347 };
348
349try {
350 process.chdir(TEST_FOLDER);

Callers 15

ngd-graphs.jsFile · 0.70
loopMethod · 0.50
processMarkdownsMethod · 0.50
prepareModulesMethod · 0.50
ApplicationClass · 0.50
prepareInterfacesMethod · 0.50
prepareControllersMethod · 0.50
prepareEntitiesMethod · 0.50
prepareComponentsMethod · 0.50
prepareDirectivesMethod · 0.50
prepareInjectablesMethod · 0.50
prepareInterceptorsMethod · 0.50

Calls 6

generateGraphFunction · 0.85
logMethod · 0.80
matchMethod · 0.80
cloneFunction · 0.70
printStatFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…