Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.2
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Description
Reference: See "trailing" in http://www.jshint.com/docs/
Title
Avoid trailing whitespaces
Severity
Major
Description
Trailing whitespaces are simply useless and should not stay in code. In JavaScript, they can even be source of nasty bugs with multi-line strings.
If you encounter violations from this rule, this probably means that you are not using an automated code formatter - which you should if you have the opportunity to do so.
// The following string will error if there is a whitespace after '\' var str = "Hello \ World";
Message
Remove the useless trailing whitespaces at the end of this line.
Activated?
Yes
Cardinality
Single
Manually tested.