closure-linter icon indicating copy to clipboard operation
closure-linter copied to clipboard

whitespace around line comments not enforced

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

Enhancement request...

The Google JS StyleGuide says "We follow the C++ style for comments in spirit."

http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Comments

The C++ style guide requires two spaces before and one space after "//", like 
so:

var foo;  // foo is bar

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Implement
ation_Comments#Implementation_Comments

It would be uber helpful if the linter could provide warnings for these rules, 
even if it was an 'opt in' setting.

Original issue reported on code.google.com by [email protected] on 14 Aug 2014 at 3:44

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter