Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.0
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Issue Links
- depends upon
-
SONARPLUGINS-1788
Provide JavaScript rule engine based on SSLR
-
Works well even if it would be better to report the violation on the line where the trailing comma is located and not on the array or object declaration.
Could you extend the description as follows :
<p>Most browsers do support trailing comma but that's not the case for Internet Explorer for which a meaningless error is thrown for most IE versions.</p> <p> The following code snippet illustrates this rule : </p> <pre> var settings = { 'foo' : oof, 'bar' : rab, <- trailing comma }; </pre>