CLI: Support a maxErrors option to limit the number of reported errors (fixes #664, fixes #238)

I started on #664 and remade this to be simpler and non-static.
No, when dealing with piped stdin input. We should show this error message
too
On Oct 9, 2014 6:02 AM, "Marat Dulin" <notifications@github.com> wrote:

> In lib/cli.js:
>
> > @@ -135,6 +139,10 @@ module.exports = function(program) {
> >
> >              reporter(errorsCollection);
> >
> > +            if (checker.maxErrorsExceeded()) {
> > +                console.log('Too many errors... Increase `maxErrors` configuration option value to see more.');
>
>  So this would not come up if user doesn't use TTY?
>
> You mean browser version? If so, we don't even include reporters there.
> Users are free to implement their own reactions.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jscs-dev/node-jscs/pull/673/files#r18636360>.
>