Conversation
d25dadd to
f349def
Compare
|
@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 let's rebase this again sorry. |
1fb6cc1 to
29b6c28
Compare
Nevermind, I just did it myself. However, I didn't manage to fix the build entirely so please continue adding commits here. Thanks |
ac41076 to
a52ab0c
Compare
|
Not sure the rule is working well, it seems to be flagging as a violation when two functions have parameters with the same name (look at my last WIP commit that I just pushed). |
I've noticed that too and added a test case for it. |
3a608c6 to
823cbe1
Compare
9226ca3 to
4a7b5ef
Compare
6afdf6b to
9a54685
Compare
e8e7af9 to
4052819
Compare
dd6f099 to
45c2580
Compare
|
@webwarrior-ws rebasing should fix CI now? |
Added DisallowShadowing rule (no implementation yet). Added tests for it.
Implemented DisallowShadowing rule, making previously added tests pass. Fixes fsprojects#112
In DisallowShadowing rule, ignore variables that start with underscore (`_`). Added test for this case.
Co-authored-by: webwarrior-ws <reg@webwarrior.ws>
That makes sure that there is no false positive when different non-nested functions have the same parameter name.
Utilities.rangeContainsOtherRange only took line numbers into account, changed it to compare both line and column numbers.
That makes sure that there is no false positive for the same identifier in match clause used multiple times that doesn't shadow another identifier.
In match expressions.
That makes sure that there is no false positive for identifiers used as arguments to active pattern.
In match expressions with active pattern.
f00c2df to
c900a60
Compare
|
CI still broken |
d9b3f91 to
f13f78a
Compare
d9b3f91 to
03d1790
Compare
Co-authored-by: webwarrior-ws <reg@webwarrior.ws>
a2b4f28 to
26d5573
Compare
Add DisallowShadowing rule and tests for it.
Fixes #112