Skip to content

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

Merged
Ilya (iSazonov) merged 81 commits into
PowerShell:masterfrom
SteveL-MSFT:space-after-brace
Dec 24, 2018
Merged

Ilya (iSazonov) merged 81 commits into
PowerShell:masterfrom
SteveL-MSFT:space-after-brace

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Dec 23, 2018 •

Copy link
Copy Markdown
Member

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

Ilya (iSazonov) commented Dec 23, 2018 •

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT) Please resolve the merge conflict.

@SteveL-MSFT

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

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

@iSazonov Ilya (iSazonov) mentioned this pull request Dec 23, 2018
7 of 11 tasks
@iSazonov

Copy link
Copy Markdown
Collaborator

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

@iSazonov

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT) I'd merge if Dongbo Wang (@daxian-dbw) is absent.

@iSazonov
Ilya (iSazonov) merged commit 4af3068 into PowerShell:master Dec 24, 2018
@TravisEz13 Travis Plunk (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
Steve Lee (SteveL-MSFT) deleted the space-after-brace branch June 6, 2020 02:29
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…8530)

* Update TestService

* Update WebListener

* Update Controllers

* Update ExpTest

* Update MyApp

* Update Logic

* Update Logic

* Update MyApp

* Update Microsoft.Management.Infrastructure.CimCmdlets

* Update Microsoft.PowerShell.Commands.Diagnostics

* Update Microsoft.PowerShell.ScheduledJob

* Update Microsoft.WSMan.Management

* Update Microsoft.WSMan.Runtime

* Update ResGen

* Update TypeCatalogGen

* Update commands

* Update Eventing

* Update Reader

* Update utility

* Update ShowCommand

* Update trace

* Update WebCmdlet

* Update Common

* Update CoreCLR

* Update common

* Update format-object

* Update format-wide

* Update out-file

* Update out-printer

* Update out-string

* Update OutGridView

* Update LocalAccounts

* Update Commands

* Update security

* Update CoreCLR

* Update DscSupport

* Update engine

* Update help

* Update logging

* Update namespaces

* Update security

* Update utils

* Update config

* Update perfCounters

* Update tracing

* Update cmdletization

* Update other

* Update cim

* Update xml

* Update CoreCLR

* Update common

* Update DefaultFormatters

* Update out-console

* Update out-textInterface

* Update DisplayDatabase

* Update Utilities

* Update COM

* Update ComInterop

* Update CommandCompletion

* Update debugger

* Update ExperimentalFeature

* Update hostifaces

* Update interpreter

* Update lang

* Update Modules

* Update parser

* Update runtime

* Update client

* Update commands

* Update common

* Update fanin

* Update server

* Update WireDataFormat

* Update Binding

* Update Operations

* Update interface

* Update cmdletization

* Update cim

* Update management

* Update WindowsTaskbarJumpList

* Update msh
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