-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Code redundancy fixes pass 2 #13334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code redundancy fixes pass 2 #13334
Conversation
382d65a to
77141a4
Compare
|
rebased to restart CI |
src/System.Management.Automation/engine/parser/SemanticChecks.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/namespaces/RegistryProvider.cs
Outdated
Show resolved
Hide resolved
|
Marked for maintainer review because of large line changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not going to say to change anything, because I think that this PR is not viable.
src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
Outdated
Show resolved
Hide resolved
Fixes SA1506: A documentation header line must not be followed by a blank line. Follow-up to PowerShell#13334, PowerShell#13334
77141a4 to
02f4b96
Compare
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs
Outdated
Show resolved
Hide resolved
|
I'm leaving the review-maintainer tag, so the maintainers can review what was done here and see if we should update the contribution guide. One suggestion, is that guidance should be:
Although it is guidance, the guidance is a consideration during PR review. |
It seems we already have this recommendation. Also for automatic fixes (by script or analyzer) it is better to fix all code base at a time. |
Then, I'm at a deadlock. Large fixes are not reasonably reviewable. |
|
OK, I will seperate RCS1114: Remove redundant delegate creation changes into new PR, so that they can be reviewed and merged. I will not rebase this PR, leaving @iSazonov approval intact. This means we will have to merge in order. |
We have already gained some experience in the area:
|
|
@iSazonov @TravisEz13 I have split some changes from |
|
@PowerShell/powershell-maintainers reviewed this PR and agreed to accept it for 7.2-preivew. So we should delay merging it until after 7.1-RC1 release branch gets created.
|
|
Set Draft till 7.2 Preview1. |
|
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 Is it still Draft? |
02f4b96 to
0f64aca
Compare
|
rebased |
This comment has been minimized.
This comment has been minimized.
|
remaining CodeFactor issues are pre-existing |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@xtqqczze Please resolve merge conflicts. |
|
@TravisEz13 Please update your review. |
7976046 to
b521b85
Compare
|
all changes are merged, closed |
All changes have been merged.
Follow-up to #12916
Autofix RCS1036: Remove redundant empty linechanges split to Autofix RCS1036: Remove redundant empty line #13404Autofix RCS1033: Remove redundant boolean literalchanges split to Fix RCS1033: Remove redundant boolean literal part 1 #13454, Fix RCS1049: Simplify boolean comparison #13994Autofix RCS1114: Remove redundant delegate creationchanges merged in Remove redundant delegate creation #13441