@@ -314,15 +314,7 @@ const lintElixirc = async (textEditor) => {
314
314
const fileText = textEditor . getText ( ) ;
315
315
const execOpts = await getOpts ( filePath ) ;
316
316
317
- const argsAsString = elixircArgs . join ( ' ' ) ;
318
- const optsAsString = JSON . stringify ( execOpts ) ;
319
- // eslint-disable-next-line no-console
320
- console . log ( `Executing the command: ${ elixircPath } ${ argsAsString } ${ optsAsString } ` ) ;
321
-
322
317
const result = await exec ( elixircPath , elixircArgs , execOpts ) ;
323
- const str = JSON . stringify ( result , null , 2 ) ;
324
- // eslint-disable-next-line no-console
325
- console . log ( `Result: ${ str } ` ) ;
326
318
327
319
// Cleanup the temp dir
328
320
tempDir . removeCallback ( ) ;
@@ -338,14 +330,7 @@ const lintMix = async (textEditor) => {
338
330
const fileText = textEditor . getText ( ) ;
339
331
const execOpts = await getOpts ( filePath ) ;
340
332
341
- const optsAsString = JSON . stringify ( execOpts ) ;
342
- // eslint-disable-next-line no-console
343
- console . log ( `Executing the command: ${ mixPath } compile ${ optsAsString } ` ) ;
344
-
345
333
const result = await exec ( mixPath , [ 'compile' ] , execOpts ) ;
346
- const str = JSON . stringify ( result , null , 4 ) ;
347
- // eslint-disable-next-line no-console
348
- console . log ( `Result: ${ str } ` ) ;
349
334
if ( textEditor . getText ( ) !== fileText ) {
350
335
// File contents have changed since the run was triggered, don't update messages
351
336
return null ;
@@ -392,20 +377,12 @@ export default {
392
377
name : 'Elixir' ,
393
378
async lint ( textEditor ) {
394
379
const filePath = textEditor . getPath ( ) ;
395
- // const forcedElixirc = isForcedElixirc();
396
- // const mixProject = await isMixProject(filePath);
397
- // const exsFile = isExsFile(filePath);
398
- // const phoenixProject = (await isPhoenixProject());
399
380
if (
400
381
isForcedElixirc ( ) ||
401
382
! ( await isMixProject ( filePath ) ) ||
402
383
isExsFile ( filePath ) ||
403
384
( await isPhoenixProject ( filePath ) )
404
385
) {
405
- // forcedElixirc ||
406
- // !mixProject ||
407
- // exsFile ||
408
- // phoenixProject) {
409
386
return lintElixirc ( textEditor ) ;
410
387
}
411
388
return lintMix ( textEditor ) ;
0 commit comments