Skip to content

Clean up MshObject.cs and MshMemberInfo.cs - #7446

Merged
Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
daxian-dbw:cleanup
Sep 26, 2018
Merged

Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
daxian-dbw:cleanup

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Aug 3, 2018 •

Copy link
Copy Markdown
Member

PR Summary

Separated from #7413
Clean up MshObject.cs and MshMemberInfo.cs.

/cc Ilya (@iSazonov) Staffan Gustafsson (@powercode)

PR Checklist

@powercode

Copy link
Copy Markdown
Collaborator

Looks great! Ship it!

@iSazonov Ilya (iSazonov) left a comment

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.

I marked not all issues (one per type).

I absolutely don't agree use new pattern ( => ) in one file. If we want use this we should fix all code base.
In typical PR we modify some files and if the files have different style this is a difficulty for contributor.
I would like us to use the same styles and formatting throughout the code. These will greatly improve code manageability.

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.

Did we say about out TypeTabel typeTable?

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.

That it was less noisy and repetitive?

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.

How many delegate () {} patterns we have in our code? I unlike use new pattern in one place and add a chaos. I'd prefer use the same pattern in all code and if we want new pattern I'd expect that we fix all code in one PR.

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.

I think we should write new code using new patterns. If someone wants to clean up older code, fine. But I would really dislike having to use some old construct just because some other old code hasn't been updated.

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 last arguments is on one line? And why we don't use named arguments for constants?

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.

I unlike use new pattern in one file and add a chaos. I'd prefer use the same pattern in all code and if we want new pattern I'd expect that we fix all code.

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.

I like using new patterns in new code. I don't in any way feel that it in any way creates chaos. We must have completely different ways of using that word.

If you get to a file using the older pattern, you recognize it as older code, but we are capable of reading and understanding both versions.

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.

Extra space after (XmlNode).

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.

Should we use spaces? { this.instance }

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 same.

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 this is on new line?

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.

Extra space.

@iSazonov Ilya (iSazonov) Aug 5, 2018 •

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.

Extra space.

@stale

stale Bot commented Sep 4, 2018

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days.
Thank you for your contributions.
Community members are welcome to grab these works.

@stale stale Bot added Stale and removed Stale labels Sep 4, 2018

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.

I think we should write new code using new patterns. If someone wants to clean up older code, fine. But I would really dislike having to use some old construct just because some other old code hasn't been updated.

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.

I like using new patterns in new code. I don't in any way feel that it in any way creates chaos. We must have completely different ways of using that word.

If you get to a file using the older pattern, you recognize it as older code, but we are capable of reading and understanding both versions.

@TravisEz13

Copy link
Copy Markdown
Member

Dongbo Wang (@daxian-dbw) Can you resolve conflicts?

@daxian-dbw

Copy link
Copy Markdown
Member Author

The PR has been rebased. Ilya (@iSazonov) maintainers can push changes to PRs, so please feel free to address the issues that are brought up in your comments.

@iSazonov

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT) Dongbo Wang (@daxian-dbw) New commits was added.

@SteveL-MSFT

Copy link
Copy Markdown
Member

Looks like we just need to resolve the merge conflict

@TravisEz13

Copy link
Copy Markdown
Member

The code needs to be rebased to fix the test issue on linux as well

@iSazonov

Copy link
Copy Markdown
Collaborator

Rebased.

@iSazonov

Copy link
Copy Markdown
Collaborator

CI Appveyor temporary failed.

@iSazonov
Ilya (iSazonov) merged commit 0cce2ae into PowerShell:master Sep 26, 2018
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants