A-lintL-restrictiongood first issue
仓库指标
- Star
- (10,406 star)
- PR 合并指标
- (平均合并 19天 22小时) (30 天内合并 113 个 PR)
描述
I think there should be a warning about the wildcard pattern in let.
I can't imagine any situation where this makes sense, and there are cases where it's a mistake caused by taking _ for identifier though it's not.
Wrong:
{
let _ = my scope guard or whatever
// dropped right away
do stuff
}
Correct:
{
let _g = my scope guard or whatever
do stuff
// dropped at the end of the scope
}