diff --git a/tools/code-analyzer/src/commands/analyzer/analyzer-lint.ts b/tools/code-analyzer/src/commands/analyzer/analyzer-lint.ts index a620f6ca6ee..6632bf0960c 100644 --- a/tools/code-analyzer/src/commands/analyzer/analyzer-lint.ts +++ b/tools/code-analyzer/src/commands/analyzer/analyzer-lint.ts @@ -64,6 +64,15 @@ const program = new Command() 'TEMPLATES', Logger.notice ); + } else { + Logger.notice( '\n\n## TEMPLATE CHANGES' ); + Logger.notice( + '---------------------------------------------------' + ); + Logger.notice( 'No template changes found.' ); + Logger.notice( + '---------------------------------------------------' + ); } if ( changes.hooks.size ) { @@ -73,6 +82,15 @@ const program = new Command() 'HOOKS', Logger.notice ); + } else { + Logger.notice( '\n\n## HOOK CHANGES' ); + Logger.notice( + '---------------------------------------------------' + ); + Logger.notice( 'No hook changes found.' ); + Logger.notice( + '---------------------------------------------------' + ); } if ( changes.schema.filter( ( s ) => ! s.areEqual ).length ) { @@ -82,10 +100,28 @@ const program = new Command() outputStyle, Logger.notice ); + } else { + Logger.notice( '\n\n## SCHEMA CHANGES' ); + Logger.notice( + '---------------------------------------------------' + ); + Logger.notice( 'No schema changes found.' ); + Logger.notice( + '---------------------------------------------------' + ); } if ( changes.db ) { printDatabaseUpdates( changes.db, outputStyle, Logger.notice ); + } else { + Logger.notice( '\n\n## DB CHANGES' ); + Logger.notice( + '---------------------------------------------------' + ); + Logger.notice( 'No db changes found.' ); + Logger.notice( + '---------------------------------------------------' + ); } } ); diff --git a/tools/code-analyzer/src/lib/scan-changes.ts b/tools/code-analyzer/src/lib/scan-changes.ts index 2d3983b260e..a21804c002d 100644 --- a/tools/code-analyzer/src/lib/scan-changes.ts +++ b/tools/code-analyzer/src/lib/scan-changes.ts @@ -32,6 +32,8 @@ export const scanForChanges = async ( ? clonedPath : await cloneRepo( source ); + Logger.endTask(); + Logger.notice( `Temporary clone of ${ source } created at ${ tmpRepoPath }` );