jshint/node-jshint — Issue #48: reporters process exit is ignored
Author: cliffano
Created: 2011-10-11 05:43:46+00:00
State: open

I'm testing node-jshint master and it seems that the reporters never exit with the expected exit code, and stdout end is never called
process.stdout.on('end', function () {
process.exit(len > 0 ? 1 : 0);
});

What I did was:
1. Run jshint somefilewitherror.js --jslint-reporter
2. Verify that the errors are then showed correctly, but the exit code is still 0
3. Log the value of len variable to make sure that it's greater than 0

Is the above a bug? Or do I misunderstand how jshint is supposed to be executed?
I noticed that the unit tests emit 'end', so that will work with the reporters. It just doesn't work when I run jshint from command line.