title: grunt jshint fail only if more than N errors
body: <p>I am using <a href="https://github.com/gruntjs/grunt-contrib-jshint" rel="nofollow">jshint</a> to validate my scripts with grunt. I configured it and it works correctly. The only problem is that it either pass (when there are no errors) or fails if there is at least 1 error.</p>
  
  <p>I am aware that I can use -<code>-force</code> true in my options to suppress the fail</p>
  
  <pre><code>options: {
    force : true
  }
  </code></pre>
  
  <p>But this is not what I want. I want my validation to fail if there are more than <code>N</code> (let's say 10) errors.</p>
  
  <p>After reading documentation, I thought I can achieve it with <code>"maxerr" : 10</code> in my <code>.jshintrc</code> file. But this does not solve it. The only thing it does is showing additional warning like <code>Too many errors. (58% scanned).</code> when you already exceed your limit.</p>
  
  <p>So is there a way to fail my validation only if I have more than N errors? By this I mean that validation would pass if I have no errors (which I have right now) but also if I have <code>N-1</code> errors.</p>