Feature Request: Name violated rule in results #742

Open
bdkjones opened this Issue Nov 18, 2012 · 0 comments

Comments

Projects
None yet
4 participants
@bdkjones

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 they need to adjust to eliminate certain warnings that they're willing to tolerate in their code.

@lukeapage lukeapage added this to the v3.0.0 milestone Jun 15, 2015

@lukeapage lukeapage added New rule and removed New rule labels Jun 25, 2015

@jugglinmike jugglinmike modified the milestone: v3.0.0 Jun 25, 2015

danielctull pushed a commit to danielctull-forks/jshint that referenced this issue Jan 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment