feat(dev-infra): output the number of new and fixed cycles (#38805)
This commit adds a logic to ouput the number of new and fixed cycles after running circular dependency checker. This information is useful to better understand an impact of changes in case the number of new/fixed cycles is relatively big. PR Close #38805
This commit is contained in:

committed by
Misko Hevery

parent
c4a7516747
commit
6f579b20f8
@ -112,7 +112,8 @@ export function main(
|
||||
if (fixedCircularDeps.length !== 0) {
|
||||
error(yellow(` Fixed circular dependencies that need to be removed from the golden:`));
|
||||
fixedCircularDeps.forEach(c => error(` • ${convertReferenceChainToString(c)}`));
|
||||
error();
|
||||
info(yellow(`\n Total: ${newCircularDeps.length} new cycle(s), ${
|
||||
fixedCircularDeps.length} fixed cycle(s). \n`));
|
||||
if (approveCommand) {
|
||||
info(yellow(` Please approve the new golden with: ${approveCommand}`));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user