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

Remove extra new line character from end of file #61056

Merged
merged 1 commit into from
May 6, 2022

Conversation

elachlan
Copy link
Contributor

This PR removes a single new line character to help with an analyzer change in msbuild.
Relates to dotnet/msbuild#7571

Associated analyzer that someone might want to implement in roslyn:
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md

@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 29, 2022
@sharwell
Copy link
Member

sharwell commented May 2, 2022

@CyrusNajmabadi I would expect this case to be covered by your style rule for removing extraneous blank lines. Even though there are only two consecutive newline characters at the end, it should treat one of them as extraneous when it occurs at the end of a file.

@CyrusNajmabadi
Copy link
Member

Not sure I agree. Feels like independent rules people might want to control separately

@sharwell sharwell merged commit dfdfc22 into dotnet:main May 6, 2022
@ghost ghost added this to the Next milestone May 6, 2022
@elachlan elachlan deleted the SA1518 branch May 6, 2022 03:07
@Cosifne Cosifne modified the milestones: Next, 17.3 P2 May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants