Skip to content

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 Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-IDE labels Apr 29, 2022
@sharwell
Copy link
Contributor

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