Skip to content

Format Utility csproj with updated codeformatter - #7263

Merged
Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
iSazonov:fmt-utility-csproj
Jul 21, 2018
Merged

Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
iSazonov:fmt-utility-csproj

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Jul 11, 2018 •

Copy link
Copy Markdown
Collaborator

PR Summary

Related #4708.

Format Microsoft.PowerShell.Commands.Utility.csproj by codeformatter with default options.

The codeformatter is used that I compiled with newest Roslyn packages (version 2.8.2).

PR Checklist


This change is Reviewable

string content = StreamToString (stream, encoding);
string content = StreamToString(stream, encoding);
if (isDefaultEncoding) do
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formatting change looks odd to me. Would it be better to wrap the do..while in braces?

if (...)
{
  do
  {
  }
  while ()
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeFormatter keeps previous formatting for if-do but remove extra braces in do-while.
So formally you ask other change - manual vs automatic formatting.

I agree that you request is right and I'll manually do the fix.

@TravisEz13 Travis Plunk (TravisEz13) left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 31 of 31 files at r1.
Reviewable status: :shipit: complete! all files reviewed

Approval is always assuming you address other's comments

@iSazonov

Copy link
Copy Markdown
Collaborator Author

Steve Lee (@SteveL-MSFT) Your comment was addressed.

@TravisEz13 Travis Plunk (TravisEz13) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed

@TravisEz13
Travis Plunk (TravisEz13) merged commit e9d5f68 into PowerShell:master Jul 21, 2018
@TravisEz13 Travis Plunk (TravisEz13) added the WG-Maintainers-Build specific to affecting the build label Jul 21, 2018
@iSazonov
Ilya (iSazonov) deleted the fmt-utility-csproj branch July 23, 2018 09:31
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Related PowerShell#4708.

Format Microsoft.PowerShell.Commands.Utility.csproj by codeformatter with default options.

The codeformatter is used that I compiled with newest Roslyn packages (version 2.8.2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WG-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants