Exit code (v0.4.0)
ashfahan opened this issue · comments
Ashfahan commented
XhmikosR commented
Hmm, must have broken in the latest patch.
/CC @Johann-S: can you have a look please? Maybe we should check the exit code in tests to prevent this from happening again?
Ashfahan commented
Maybe add process.exit(1);
in else statement?
find-unused-sass-variables/cli.js
Lines 50 to 53 in 33c24a1
XhmikosR commented
Probably the exit code should be the number of unused variables found.
Ashfahan commented
how about something like ?
} else { spinner.fail(`${unusedList.length} unsed variables found !`); process.exit(1); }