Skip to content

Cleanup style in InitialSessionState.cs - #10865

Merged
Ilya (iSazonov) merged 11 commits into
PowerShell:masterfrom
iSazonov:cleanup-style-initialsessionstate-1
Nov 9, 2019
Merged

Ilya (iSazonov) merged 11 commits into
PowerShell:masterfrom
iSazonov:cleanup-style-initialsessionstate-1

Conversation

@iSazonov

Copy link
Copy Markdown
Collaborator

PR Summary

Follow #10368
Fix style issues in InitialSessionState.cs file.

Please review commit by commit. There is a lot of commits but everyone is small and simple.

PR Context

CodeFactor has two nice metrics:

  • how many a file was changed
  • how many a file has style issues

PR Checklist

@iSazonov Ilya (iSazonov) changed the title Cleanup style initialsessionstate 1 Cleanup style in InitialSessionState.cs Oct 22, 2019

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some minor nits and suggestions. Otherwise looks good!

Thanks for taking the time to sort this out! 😊

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why the change of exception type? 🙂

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.

Should be changed back

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.

Done.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These look fairly long... we might be better off putting every parameter on its own line. 🤔

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 one seems to be just long enough to be on one line, but ok with either.

Comment on lines 3490 to 3591

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The line break before = doesn't seem necessary. The rest is good though! 👍

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.

I will fix in last commit or in follow PR - the file contains still many style issues.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Appreciate you taking the time to clean up old code in such an organised manner! 💖 😊

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.

We have already seen that it significantly reduces the time for PR passing through code review.

@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Oct 22, 2019
@iSazonov Ilya (iSazonov) self-assigned this Oct 22, 2019
@iSazonov
Ilya (iSazonov) force-pushed the cleanup-style-initialsessionstate-1 branch from 7ee5b2b to 21e8aa5 Compare November 6, 2019 11:48

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.

Should be changed back

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 7, 2019
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 7, 2019

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 one seems to be just long enough to be on one line, but ok with either.

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 7, 2019
Co-Authored-By: Steve Lee <slee@microsoft.com>
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 8, 2019
Co-Authored-By: Steve Lee <slee@microsoft.com>
@iSazonov
Ilya (iSazonov) merged commit d364278 into PowerShell:master Nov 9, 2019
@iSazonov
Ilya (iSazonov) deleted the cleanup-style-initialsessionstate-1 branch November 9, 2019 06:02
@ghost

Copy link
Copy Markdown

🎉v7.0.0-preview.6 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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.

3 participants