@@ -186,8 +186,12 @@ $ ${name} "**/*.md" "#node_modules"`
186186 map ( negateGlob ) ;
187187 appendToArray ( globPatterns , ignorePatterns ) ;
188188 delete baseMarkdownlintOptions . ignores ;
189+ const showProgress = ! baseMarkdownlintOptions . noProgress ;
189190
190191 // Enumerate files from globs and build directory info list
192+ if ( showProgress ) {
193+ logMessage ( `Finding: ${ globPatterns . join ( " " ) } ` ) ;
194+ }
191195 for await ( const file of globby . stream ( globPatterns ) ) {
192196 // @ts -ignore
193197 const dir = path . dirname ( file ) ;
@@ -280,6 +284,10 @@ $ ${name} "**/*.md" "#node_modules"`
280284 }
281285
282286 // Lint each list of files
287+ if ( showProgress ) {
288+ const fileCount = dirInfos . reduce ( ( p , c ) => p + c . files . length , 0 ) ;
289+ logMessage ( `Linting: ${ fileCount } file(s)` ) ;
290+ }
283291 for ( const dirInfo of dirInfos ) {
284292 const { dir, files, markdownlintConfig, markdownlintOptions } = dirInfo ;
285293 let filteredFiles = files ;
@@ -364,6 +372,9 @@ $ ${name} "**/*.md" "#node_modules"`
364372 summary . forEach ( ( result ) => delete result . counter ) ;
365373
366374 // Output summary via formatters
375+ if ( showProgress ) {
376+ logMessage ( `Summary: ${ summary . length } error(s)` ) ;
377+ }
367378 const { outputFormatters } = baseMarkdownlintOptions ;
368379 const errorsPresent = ( summary . length > 0 ) ;
369380 if ( errorsPresent || outputFormatters ) {
0 commit comments