8000 OBSOLETE: Update accessibility modifiers by xtqqczze · Pull Request #11773 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@xtqqczze
Copy link
Contributor
@xtqqczze xtqqczze commented Feb 5, 2020

PR Summary

  • Autofix RCS1102: Make class static when only containing static members.
    • plus 4 manual fixes
  • Autofix RCS1225: Make class sealed when only having a private constructor.
    • Fix CA1047: Do not declare protected members in sealed types
  • Change sealed classes with private constructors to static classes
  • Revert changes to public APIs causing test failures

PR Context

https://github.com/PowerShell/PowerShell/blob/master/docs/dev-process/coding-guidelines.md#member-conventions

PR Checklist

@vexx32
Copy link
Collaborator
vexx32 commented Feb 5, 2020

@xtqqczze you may want to update the PR description with your reasoning for each change, since most of them seem to be on a per-class basis. I'd also recommend a more general PR title, since it seems you're not only adding static modifiers here, so it's probably a little less confusing to use something like Update class modifiers and explain static / sealed / etc for each class you're changing in the PR description. 🙂

@xtqqczze xtqqczze changed the title WIP: Make classes having only static members static WIP: Change class modifiers to static where applicable Feb 5, 2020
@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Feb 5, 2020
@iSazonov iSazonov added this to the 7.1.0-preview.1 milestone Feb 5, 2020
Copy link
Collaborator

Choose a reason for hiding this comment

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

@PaulHigin @TravisEz13 Can we make the class static?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The class contains only static members.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iSazonov Should I revert?

@xtqqczze xtqqczze changed the title WIP: Change class modifiers to static where applicable WIP: Update accessibility modifiers Feb 5, 2020
@xtqqczze xtqqczze force-pushed the static-classes branch 2 times, most recently from c7891dd to 0c99e14 Compare February 5, 2020 06:21
Copy link
Collaborator
@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

Why do we set sealed for internal classes? Can you add more info in the PR description?

@ghost ghost added the Review - Needed The PR is being reviewed label May 27, 2020
@ghost
Copy link
ghost commented May 27, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Mainainer, Please provide feedback and/or mark it as Waiting on Author

@iSazonov
Copy link
Collaborator

@xtqqczze Have you plans to continue? Please resolve merge conflicts.

@TravisEz13
Copy link
Member

Please separate the static and sealed changes.

@ghost ghost removed the Review - Needed The PR is being reviewed label Oct 25, 2020
@xtqqczze xtqqczze marked this pull request as draft October 26, 2020 16:23
@xtqqczze
Copy link
Contributor Author

I will separate changes into new PRs, converting to draft.

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Oct 29, 2020
@iSazonov
Copy link
Collaborator
iSazonov commented Nov 5, 2020

I will separate changes into new PRs, converting to draft.

Have you any updates?

@xtqqczze
Copy link
Contributor Author
xtqqczze commented Nov 5, 2020

I will separate changes into new PRs, converting to draft.

Have you any updates?

@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 5, 2020
@iSazonov
Copy link
Collaborator
iSazonov commented Nov 5, 2020

I will separate changes into new PRs, converting to draft.

Have you any updates?

So the PR can be closed?

@xtqqczze xtqqczze changed the title Update accessibility modifiers WIP: Update accessibility modifiers Nov 5, 2020
@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 9, 2020
@iSazonov
Copy link
Collaborator

I will separate changes into new PRs, converting to draft.

Have you any updates?

So the PR can be closed?

@xtqqczze Can we close?

@xtqqczze
Copy link
Contributor Author

@xtqqczze Can we close?

This PR has some changes that depends on #13897, so it should stay as draft.

@ghost ghost added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept labels Nov 23, 2020
@xtqqczze
Copy link
Contributor Author
xtqqczze commented Dec 6, 2020

RCS1102 changes are split to #14335.

@ghost ghost added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept labels Dec 6, 2020
@ghost ghost added the Stale label Dec 24, 2020
@ghost
Copy link
ghost commented Dec 24, 2020

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment.

@xtqqczze
Copy link
Contributor Author

e0e60ba changes submitted as #15671.

@ghost ghost removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept Stale labels Jun 25, 2021
@xtqqczze xtqqczze deleted the static-classes branch June 25, 2021 14:09
@xtqqczze xtqqczze mentioned this pull request Jun 25, 2021
@xtqqczze
Copy link
Contributor Author

2069d92 changes submitted as #15675

@xtqqczze xtqqczze changed the title WIP: Update accessibility modifiers OBSOLETE: Update accessibility modifiers Jun 25, 2021
@xtqqczze
Copy link
Contributor Author

Changes from this PR are now either merged or submitted in PRs.

This pull request was closed.
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.

6 participants

0