Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code must not contain trailing whitespace #360

Closed
alexandrius007 opened this issue Oct 26, 2016 · 6 comments
Closed

Code must not contain trailing whitespace #360

alexandrius007 opened this issue Oct 26, 2016 · 6 comments

Comments

@alexandrius007
Copy link

Environment

  • Visual Studio Enterprise 2015
  • CodeMaid version: 10.1.93
  • Code language: [example C#]

Description

Afrer code clean there are spaces in end of comment line
Warning SA1028 Code must not contain trailing whitespace

    /// Acks this instance.**_**

For Example:
///

    /// Acks this instance.
    /// </summary>
@alexandrius007
Copy link
Author

image

@codecadwallader
Copy link
Owner

Thanks for reporting the issue, but I have been unable to reproduce it. Can you attach an export of your settings?

@alexandrius007
Copy link
Author

CodeMaid.zip
Attached file

@codecadwallader
Copy link
Owner

Sorry that this slipped off my radar for so long. I am able to reproduce the issue by running a comment format with your set of settings included. @willemduncan would you like to take a look? It looks like the trailing space is being inserted.

@alexandrius007
Copy link
Author

I inserted animation where You could see trailing whitespace
animation

@w5l
Copy link
Collaborator

w5l commented Apr 26, 2018

Ah, located it. It's because of the Formatting_CommentXmlSpaceTags set to true. This should add space between XML tags and content:

/// <summary> Like so </summary>

In case of multiline XML tags, the erroneous extra space appears.

w5l added a commit to w5l/codemaid that referenced this issue Apr 26, 2018
Fixes codecadwallader#360.

Using the setting to add whitespace between XML tags and content would leave a trailing whitespace in cases when the containing XML tags are on their own line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants