-
Notifications
You must be signed in to change notification settings - Fork 8k
Autofix SA1518: No extra blank lines at the end of the file #13574
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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 57 files
|
@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