Autofix SA1518: No extra blank lines at the end of the file#13574
Autofix SA1518: No extra blank lines at the end of the file#13574iSazonov merged 1 commit intoPowerShell:masterfrom
Conversation
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@PowerShell/powershell-maintainers reviewed this PR and agreed to reject it. We have been telling contributors to add a new line at the end for quite some time, because GitHub code difference usually complains about not having a new line at the end. |
|
@daxian-dbw According to the documentation for SA1518, the default setting for this rule is: "Files are allowed to end with a single newline character, but it is not required". To be clear, while this PR removes the necessary blank lines at the the of files, it does not remove the single newline charactor at the end of the last line (which may in fact cause issues with diff tools). |
|
@daxian-dbw The PR removes extra second empty line at EOF. |
src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs
Show resolved
Hide resolved
|
@iSazonov Please reopen. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
@daxian-dbw Can you please re-review, I would like this merged early for |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@PoshChan Please remind me in 7 days |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@TravisEz13 Please continue your review. |
|
🎉 Handy links: |
PR Summary
Autofix SA1518: The code must not contain blank lines at the end of the file.
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.This change is