mathiasrw / closure-linter

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

Closure Linter does not enforce goog.scope style rules #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See Closure Lib 435:  issue 
http://code.google.com/p/closure-library/issues/detail?id=435

The linter should enforce these rules (or the design doc linked in that issue 
should be changed to remove them).

Original issue reported on code.google.com by JayYoung...@gmail.com on 10 Mar 2012 at 7:01

GoogleCodeExporter commented 9 years ago
Quote from this doc:
> goog.scope should wrap the entire file. Its contents should be indented 2 
spaces.

Closure Linter enforces 0 spaces. This is especially annoying when your IDE is 
insisting on 2 spaces by its auto indenting.

What the status of aforementioned doc and why linter is not conforming to it 
intentionally?
BTW, there is nothing about goog.scope comment after function closing (E:0500) 
in this doc as well.

Original comment by aleksam...@gmail.com on 22 May 2012 at 3:07

GoogleCodeExporter commented 9 years ago
I'm talking about this doc actually
https://docs.google.com/document/pub?id=1ETFAuh2kaXMVL-vafUYhaWlhl6b5D9TOvboVg7Z
l68Y#h.s4biafye4ewe

Original comment by aleksam...@gmail.com on 23 May 2012 at 8:49