google/closure-compiler
Warn if a goog.scope alias uses a different name from the last part of the original name
开放
#1,283 创建于 2015年12月4日
enhancementhelp wanted
仓库指标
- 星标
- (7,176 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
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