google/closure-compiler
Auf GitHub ansehenWarn if a goog.scope alias uses a different name from the last part of the original name
Open
#1.283 geöffnet am 4. Dez. 2015
enhancementhelp wanted
Repository-Metriken
- Stars
- (7.176 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 3T 4h) (1 gemergte PR in 30 T)
Beschreibung
When creating a short alias for some.really.long.name.Foo the alias should almost certainly be Foo. If someone writes
goog.scope(function() {
var Bar = some.really.long.name.Foo;
});
it is surprising and a violation of the style guide. We could probably warn for this pretty easily in the ScopedAliases pass