@@ -156,8 +156,8 @@ const program = new Command()
156156 const resolvedDirectory = path . resolve ( directory ) ;
157157 const userConfig = loadConfig ( resolvedDirectory ) ;
158158
159- if ( ! isScoreOnly ) {
160- logger . log ( `react-doctor v${ VERSION } ` ) ;
159+ if ( ! isScoreOnly && ! flags . hideBranding ) {
160+ logger . log ( \ `react - doctor v \ ${ VERSION } \ `) ;
161161 logger . break ( ) ;
162162 }
163163
@@ -181,7 +181,7 @@ const program = new Command()
181181 isScoreOnly ,
182182 ) ;
183183
184- if ( isDiffMode && diffInfo && ! isScoreOnly ) {
184+ if ( isDiffMode && diffInfo && ! isScoreOnly && ! flags . hideBranding ) {
185185 if ( diffInfo . isCurrentChanges ) {
186186 logger . log ( "Scanning uncommitted changes" ) ;
187187 } else {
@@ -201,8 +201,8 @@ const program = new Command()
201201 if ( projectDiffInfo ) {
202202 const changedSourceFiles = filterSourceFiles ( projectDiffInfo . changedFiles ) ;
203203 if ( changedSourceFiles . length === 0 ) {
204- if ( ! isScoreOnly ) {
205- logger . dim ( `No changed source files in ${ projectDirectory } , skipping.` ) ;
204+ if ( ! isScoreOnly && ! flags . hideBranding ) {
205+ logger . dim ( \ `No changed source files in \ ${projectDirectory } , skipping . \ `) ;
206206 logger . break ( ) ;
207207 }
208208 continue ;
@@ -211,13 +211,13 @@ const program = new Command()
211211 }
212212 }
213213
214- if ( ! isScoreOnly ) {
215- logger . dim ( `Scanning ${ projectDirectory } ...` ) ;
214+ if ( ! isScoreOnly && ! flags . hideBranding ) {
215+ logger . dim ( \ `Scanning \ ${projectDirectory } ...\ `) ;
216216 logger . break ( ) ;
217217 }
218218 const scanResult = await scan ( projectDirectory , { ...scanOptions , includePaths } ) ;
219219 allDiagnostics . push ( ...scanResult . diagnostics ) ;
220- if ( ! isScoreOnly ) {
220+ if ( ! isScoreOnly && ! flags . hideBranding ) {
221221 logger . break ( ) ;
222222 }
223223 }
0 commit comments