Reporter | Zaki Maksyutov (ZakiMa) |
---|---|
Created | May 1, 2012 3:31:34 AM |
Updated | May 1, 2012 3:31:34 AM |
Priority | Normal |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
Hello,
I got a "Parameter 'x' is only used from precondition check(s)" warning from R# and I don't neceserraly agree with it in my case.
Also I don't like the idea of annotating the method with AssertionMethod attribute. Instead I would like to change the level to Hint.
But I cannot do it since this rule is actually an "Unused parameter" rule which is very valuable.
So, is there a chance to create a standalone rule for "precondition check(s)" so it would be possible to distinguish them?
Thanks,
Zaki
I got a "Parameter 'x' is only used from precondition check(s)" warning from R# and I don't neceserraly agree with it in my case.
Also I don't like the idea of annotating the method with AssertionMethod attribute. Instead I would like to change the level to Hint.
But I cannot do it since this rule is actually an "Unused parameter" rule which is very valuable.
So, is there a chance to create a standalone rule for "precondition check(s)" so it would be possible to distinguish them?
Thanks,
Zaki