Skip to content

Code cleanup: Add space after closing brace where needed#8530

Merged
iSazonov merged 81 commits intoPowerShell:masterfrom
SteveL-MSFT:space-after-brace
Dec 24, 2018
Merged

Code cleanup: Add space after closing brace where needed#8530
iSazonov merged 81 commits intoPowerShell:masterfrom
SteveL-MSFT:space-after-brace

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Dec 23, 2018

PR Summary

Using this script each folder is a separate commit making it easier to review.

The regular expression looks for any closing brace not followed by:

| catch, else, finally, another closing brace, newline, space, hash, slash (comment), * (comment)

In addition, because .NET RegEx doesn't support look behind, I skip any closing braces that are part of: { get; set; }

Some of the Copyright notices show changed because git resaved the file without BOM.

Manually reviewed all the changes.

Related #8500

PR Checklist

@iSazonov
Copy link
Collaborator

iSazonov commented Dec 23, 2018

@SteveL-MSFT Please resolve the merge conflict.

@SteveL-MSFT
Copy link
Member Author

Let's try to get this reviewed and merge before merging other PRs otherwise it's going to be a merge conflict target

@iSazonov
Copy link
Collaborator

@SteveL-MSFT I think we need fix only my last comments about "while". Rest is minor.

@SteveL-MSFT
Copy link
Member Author

@iSazonov thanks for taking the time to review this in detail. I'll update the rules in my script and will rerun.

@iSazonov iSazonov mentioned this pull request Dec 23, 2018
11 tasks
@iSazonov
Copy link
Collaborator

It was not easy, but I believe that it will facilitate our work in the future.

@iSazonov
Copy link
Collaborator

@SteveL-MSFT I'd merge if @daxian-dbw is absent.

@SteveL-MSFT SteveL-MSFT assigned iSazonov and unassigned daxian-dbw Dec 24, 2018
@iSazonov iSazonov merged commit 4af3068 into PowerShell:master Dec 24, 2018
@TravisEz13 TravisEz13 added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Jan 2, 2019
@SteveL-MSFT SteveL-MSFT deleted the space-after-brace branch June 6, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments