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.
+1. Nice work, Marat.
On Oct 8, 2014 6:13 PM, "Oleg Gaidarenko" <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?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jscs-dev/node-jscs/pull/673/files#r18615530>.
>