Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit d14e02a

Browse files
committed
Remove unused paths
1 parent 9a5e140 commit d14e02a

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

lib/init.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,7 @@ const lintElixirc = async (textEditor) => {
314314
const fileText = textEditor.getText();
315315
const execOpts = await getOpts(filePath);
316316

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-
322317
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}`);
326318

327319
// Cleanup the temp dir
328320
tempDir.removeCallback();
@@ -338,14 +330,7 @@ const lintMix = async (textEditor) => {
338330
const fileText = textEditor.getText();
339331
const execOpts = await getOpts(filePath);
340332

341-
const optsAsString = JSON.stringify(execOpts);
342-
// eslint-disable-next-line no-console
343-
console.log(`Executing the command: ${mixPath} compile ${optsAsString}`);
344-
345333
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}`);
349334
if (textEditor.getText() !== fileText) {
350335
// File contents have changed since the run was triggered, don't update messages
351336
return null;
@@ -392,20 +377,12 @@ export default {
392377
name: 'Elixir',
393378
async lint(textEditor) {
394379
const filePath = textEditor.getPath();
395-
// const forcedElixirc = isForcedElixirc();
396-
// const mixProject = await isMixProject(filePath);
397-
// const exsFile = isExsFile(filePath);
398-
// const phoenixProject = (await isPhoenixProject());
399380
if (
400381
isForcedElixirc() ||
401382
!(await isMixProject(filePath)) ||
402383
isExsFile(filePath) ||
403384
(await isPhoenixProject(filePath))
404385
) {
405-
// forcedElixirc ||
406-
// !mixProject ||
407-
// exsFile ||
408-
// phoenixProject) {
409386
return lintElixirc(textEditor);
410387
}
411388
return lintMix(textEditor);

spec/linter-elixirc-spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ const errorMode1PathElixirc = join(__dirname, 'fixtures', 'elixirc', 'error-mode
1010
const errorMode2PathElixirc = join(__dirname, 'fixtures', 'elixirc', 'error-mode2.ex');
1111
const exsFilePathElixirc = join(__dirname, 'fixtures', 'elixirc', 'script.exs');
1212

13-
const validPathMix = join(__dirname, 'fixtures', 'mix-proj', 'lib', 'valid.ex');
14-
const warningPathMix = join(__dirname, 'fixtures', 'mix-proj', 'lib', 'warning.ex');
15-
const errorMode1PathMix = join(__dirname, 'fixtures', 'mix-proj', 'lib', 'error-mode1.ex');
1613
const errorMode2PathMix = join(__dirname, 'fixtures', 'mix-proj', 'lib', 'error-mode2.ex');
1714
const exsFilePathMix = join(__dirname, 'fixtures', 'mix-proj', 'lib', 'script.exs');
1815

0 commit comments

Comments
 (0)