jshint/jshint — Issue #307: Include numbers for errors and warnings
Author: PSPadJSHint
Created: 2011-10-14 10:52:52+00:00
State: open

Hi,

Coming from C/C++ I'd like suggest to also use numbers for errors/warnings. Both for the message so you can look it up and for the option to warn or allow. Whatever you name the option, the number is not confusing. And if the message includes the number, we instantly know what option to use to allow it. Also see issue #166.

For example a warning could be:

W100: Expected 'this' to have an indentation at 9 instead at 30.

This can be suppressed with

/*jsh W100:allow*/

which actually is:

/*jsh white:allow*/