Skip to content
This repository

Feature Request: Name violated rule in results #742

Open
bdkjones opened this Issue · 0 comments

1 participant

Bryan Jones
Bryan Jones

It would be very useful if JSHint would specify which option led to each error in the results. Ideally, this would make the results array look like this:

  errors: [
    {
      line       : NUMBER,
      character  : NUMBER,
      reason     : STRING,
      evidence   : STRING,
      rule: STRING                     // New addition. Name of violated rule. E.g. "eqeqeq", or "newcap"
    }

This would help the user quickly identify which options he needs to adjust to eliminate certain warnings that he's willing to tolerate in his code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.