8000 Cleanup style in InitialSessionState.cs by iSazonov · Pull Request #10865 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@iSazonov
Copy link
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 iSazonov changed the title Cleanup style initialsessionstate 1 Cleanup style in InitialSessionState.cs Oct 22, 2019
Copy link
Collaborator
@vexx32 vexx32 left a comment

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
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
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
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
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
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
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
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
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
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 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 iSazonov self-assigned this Oct 22, 2019
@iSazonov iSazonov force-pushed the cleanup-style-initialsessionstate-1 branch from 7ee5b2b to 21e8aa5 Compare November 6, 2019 11:48
Copy link
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
Member

Choose a reason for hiding this comment

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

@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 iSazonov merged commit d364278 into PowerShell:master Nov 9, 2019
@iSazonov iSazonov deleted the cleanup-style-initialsessionstate-1 branch November 9, 2019 06:02
@ghost
Copy link
ghost commented Nov 21, 2019

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

Handy links:

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

0