Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Format Utility csproj with updated codeformatter#7263

Merged
TravisEz13 merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:fmt-utility-csprojiSazonov/PowerShell:fmt-utility-csprojCopy head branch name to clipboard
Jul 21, 2018
Merged

Format Utility csproj with updated codeformatter#7263
TravisEz13 merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:fmt-utility-csprojiSazonov/PowerShell:fmt-utility-csprojCopy head branch name to clipboard

Conversation

@iSazonov

@iSazonov 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 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

@SteveL-MSFT Your comment was addressed.

@TravisEz13 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 TravisEz13 merged commit e9d5f68 into PowerShell:master Jul 21, 2018
@TravisEz13 TravisEz13 added the WG-Maintainers-Build specific to affecting the build label Jul 21, 2018
@iSazonov iSazonov deleted the fmt-utility-csproj branch July 23, 2018 09:31
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.