When a line of code ends with a comma (e.g. in a multi-line method argument list), the ReSharper Code Cleanup rule "1001: commas must be spaced correctly" adds a single space after the comma, at the end of the line.
According to SA1001 documentation: "A comma should always be followed by a single space, unless it is the last character on the line (...)". The way I read it, this does not strictly state that placing a space after a comma at the end of the line
is prohibited (only that it is not required to do so), so the current rule implementation would be correct with respect to the letter of the documentation, but I believe the intention was to recommend not having a trailing space in such scenario,
The implementation would be fixed by adding CSharpTokenType.NEW_LINE to the tokensThatCanBeRightSideOfComma list in the StyleCop.ReSharper???.CodeCleanup.Rules.SpacingRules.CommasMustBeSpacedCorrectly methods.
Another slight issue with that rule implementation is the inclusion of CSharpTokenType.RPARENTH on that list. I don't believe there is a valid construct in C# in which a comma would be followed by a right parenthesis and I could not find such a construct in
C# 4.0 grammar (http://blogs.msdn.com/b/lucian/archive/2010/04/19/grammar.aspx