jshint/jshint — pull request #370 by goatslacker (2011-11-29 09:31:59+00:00)
Title: Adds option to each warning **Incomplete**

**Do not merge**

Intends to fix GH-257 and narrow down r02 to just 1 issue.

This is meant as a proposal more than a pull request so we can discuss it before I continue to work on it.

I was toying around with this idea.

The pros is that it's relatively simple, the cons is that it doesn't tell if a warning has multiple options like `lastsemic` and `asi`. Another con is that it doesn't tell you the value of said option (I believe in the future this would not matter as the options may change to `warn` `error` etc...)

Another idea would be to pass an object literal instead of a string. Then we can pass in multiple options as well as include the value of said options.

What's left TODO:

* Add more unit tests
* Add the options to errors as well
* Make sure that the ones without options are indeed supposed to be that way

ping @WolfgangKluge I'd like your opinion on this since you said you were working on it. I couldn't find the related branch in your repo.