FSharpLint icon indicating copy to clipboard operation
FSharpLint copied to clipboard

DRAFT: Add DisallowShadowing rule

Open webwarrior-ws opened this issue 2 years ago • 2 comments

Add DisallowShadowing rule and tests for it.

Fixes https://github.com/fsprojects/FSharpLint/issues/112

webwarrior-ws avatar Jan 09 '24 09:01 webwarrior-ws

@webwarrior-ws please add a test for shadowing for variables that start with underscore: in this case we don't want the rule to flag them.

knocte avatar Jan 09 '24 17:01 knocte

@webwarrior-ws please add a test for shadowing for variables that start with underscore: in this case we don't want the rule to flag them.

Added new commit with test and changes to the rule code.

webwarrior-ws avatar Jan 10 '24 08:01 webwarrior-ws