You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-styleLint: Belongs in the style lint groupT-ASTType: Requires working with the AST
"The Book" (TRPL) warns about variables declared in match patterns shadowing other variables. I have once been hit by this myself, so this seems to be a good idea for a lint.
The text was updated successfully, but these errors were encountered:
phansch
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-AST
Type: Requires working with the AST
A-lint
Area: New lints
L-style
Lint: Belongs in the style lint group
labels
Jul 11, 2018
Re-write shadow lints
changelog: Move shadow_unrelated to restriction
changelog: The shadow lints find a lot more shadows and are not limited to certain patterns
Drastically simplifies the implementation. Catches a lot more cases.
I removed the "initialization happens here" note. It is not helpful IMO.
Closes#318Fixes#2890Fixes#6563Fixes#7588Fixes#7620
This was closed because the existing shadow_* lints catch it, but those lints catch also other many cases at the same time. It would be nice to have a lint only for match. Please see #3433.
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-styleLint: Belongs in the style lint groupT-ASTType: Requires working with the AST
"The Book" (TRPL) warns about variables declared in match patterns shadowing other variables. I have once been hit by this myself, so this seems to be a good idea for a lint.
The text was updated successfully, but these errors were encountered: