google/closure-compiler
Voir sur GitHubWarn if a goog.scope alias uses a different name from the last part of the original name
Open
#1 283 ouverte le 4 déc. 2015
enhancementhelp wanted
Métriques du dépôt
- Stars
- (7 176 stars)
- Métriques de merge PR
- (Merge moyen 3j 4h) (1 PR mergée en 30 j)
Description
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