Using v2 build 205 - I'm curious to know why sometimes, when I do a Reformat Code (with all three options checked) on green code (no warnings or errors), ReSharper introduces redundant qualifiers and redundant casts, which then display as warnings. For example, I am working in namespace Company.Division.App.Web, and I will typically write:
ReSharper will flag this as a redundant qualifier, so I go ahead and remove it to give:
Then I do a Reformat Code, and ReSharper changes this back to the full version. In another example, I am passing an enum parameter like so:
SomeObj o = new SomeObj(SomeEnum.SomeValue);
When I do a Reformat Code, ReSharper adds a type cast:
SomeObj o = new SomeObject((SomeEnum) SomeEnum.SomeValue);
I know I can turn off certain warnings, but I like clean code so I keep them on. Is there any way to prevent the Reformat function from introducing these redundancies?