google / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
109 stars 37 forks source link

Potential false negative for extra semi-colon error #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if (true)
 alert('yes');
else;
 alert('no');

Does not report that else shouldn't be followed immediately by a semi-colon. 
This might be technically acceptable JavaScript (doesn't throw an error) but is 
probably never intended.

Original issue reported on code.google.com by a...@google.com on 8 Nov 2010 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by vagra...@google.com on 22 Aug 2013 at 4:50