jshint/jshint — Issue #444: Trailing spaces in comments
Author: jdiehl
Created: 2012-02-07 17:01:07+00:00
State: open

With the trailing option enabled, trailing spaces in comments cause the script to be rejected.

Example script (will fail):

/*jslint trailing: true */
// some comment with trailing spaces ->

This should really be ignored because many people leave trailing spaces in their comments when formatting them as a text block:

// This text will be formated as a block by just hitting the enter key when it reaches the desired column width.

// This text will be formated as a block by just
// hitting the enter key when it reaches the
// desired column width.