I am having trouble with ReSharper 10's code formatting / clean-up in a few ways. I am trying to satisfy StyleCop rules and have run into a couple of issues. I'm not sure if these are bugs, limitations or a matter of settings.
Given the following code:
ReSharper re-formats as such:
I have three issues with the results.
1) The generic constraint on the method Go() do not honor the "Place type constraints on same line" (off) format, yet the class constraint does. This violates StyleCop SA1127 Generic Type Constraints Must Be On Own Line.
2) To satisfy StyleCop's requirement SA1117 Parameters Must Be On Same Line Or Separate Lines, "Value c" above violates this policy. I can't find a way to have ReShaper chop parameters when long, but if so chop all.
3) When chopping method parameters, ReSharper leaves an empty space at the end of each line as seen after the first parameter to MyMethod(). This violates StyleCop's SA1028 Code Must Not Contain Trailing Whitespace.
If I clean this issues up to satisfy StyleCop, another run of Cleanup by ReSharper recreates the issues.
Any advice is appreciated. Thanks.