@@ -48,11 +48,16 @@ export class Packwerk {
4848 let relativeFileName = fileName . replace ( currentPath + '/' , '' ) ;
4949
5050 let onDidExec = ( error : Error , stdout : string , stderr : string ) => {
51+ // TODO: likely redundant debug logging; consider removing
52+ // eslint-disable-next-line no-console
5153 console . debug ( '[DEBUG] Finished running command, in onDidExec' ) ;
54+ // eslint-disable-next-line no-console
5255 console . debug ( '[DEBUG] Error, stderr' , error , stderr ) ;
5356 this . reportError ( error , stderr ) ;
5457 let packwerk = this . parse ( stdout ) ;
5558 if ( packwerk === undefined || packwerk === null ) {
59+ // TODO: likely redundant debug logging; consider removing
60+ // eslint-disable-next-line no-console
5661 console . debug ( '[DEBUG] packwerk is undefined or null, returning from onDidExec' ) ;
5762 return ;
5863 }
@@ -76,6 +81,8 @@ export class Packwerk {
7681 / [ \u001b \u009b ] [ [ ( ) # ; ? ] * (?: [ 0 - 9 ] { 1 , 4 } (?: ; [ 0 - 9 ] { 0 , 4 } ) * ) ? [ 0 - 9 A - O R Z c f - n q r y = > < ] / g, '' ) ;
7782
7883 const message = decolorizedMessage ;
84+ // TODO: likely redundant debug logging; consider removing
85+ // eslint-disable-next-line no-console
7986 console . debug ( '[DEBUG] Adding vscode.Diagnostic:' , { range, message } ) ;
8087 const diagnostic = new vscode . Diagnostic (
8188 range ,
@@ -131,6 +138,8 @@ export class Packwerk {
131138 cb : ( err : Error , stdout : string , stderr : string ) => void
132139 ) : cp . ChildProcess {
133140 let command = `${ this . config . executable } ${ fileName } ` ;
141+ // TODO: likely redundant debug logging; consider removing
142+ // eslint-disable-next-line no-console
134143 console . debug ( `[DEBUG] Running command ${ command } ` ) ;
135144
136145 let child = cp . exec ( command , options , cb ) ;
@@ -142,8 +151,11 @@ export class Packwerk {
142151 private parse ( output : string ) : PackwerkOutput | null {
143152 let packwerk : PackwerkOutput ;
144153 if ( output . length < 1 ) {
154+ // TODO: likely redundant debug logging; consider removing
155+ // eslint-disable-next-line no-console
145156 console . debug ( `[DEBUG] Output is ${ output } ` ) ;
146157 let message = `command ${ this . config . executable } returns empty output! please check configuration.` ;
158+ // eslint-disable-next-line no-console
147159 console . debug ( `[DEBUG] ${ message } ` ) ;
148160 // For now, we do not show this error message. There are lots of reasons why this could fail, so
149161 // we turn it off so as to not bother the user
@@ -176,10 +188,14 @@ export class Packwerk {
176188 ) ;
177189 return true ;
178190 } else if ( error && ( < any > error ) . code === 127 && this . config . showWarnings ) {
191+ // TODO: likely redundant debug logging; consider removing
192+ // eslint-disable-next-line no-console
179193 console . debug ( '[DEBUG] Showing error with code 127' , stderr ) ;
180194 vscode . window . showWarningMessage ( stderr ) ;
181195 return true ;
182196 } else if ( errorOutput . length > 0 && this . config . showWarnings ) {
197+ // TODO: likely redundant debug logging; consider removing
198+ // eslint-disable-next-line no-console
183199 console . debug ( '[DEBUG] Showing error with errorOutput.length > 0' , stderr ) ;
184200 vscode . window . showWarningMessage ( stderr ) ;
185201 return true ;
0 commit comments