Skip to content

Enable IDE0074: Use coalesce compound assignment - #13396

Merged
Ilya (iSazonov) merged 6 commits into
PowerShell:masterfrom
xtqqczze:IDE0074
Nov 25, 2020
Merged

Enable IDE0074: Use coalesce compound assignment#13396
Ilya (iSazonov) merged 6 commits into
PowerShell:masterfrom
xtqqczze:IDE0074

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Aug 11, 2020

Copy link
Copy Markdown
Contributor

PR Summary

Use C# 8.0 null-coalescing assignment.

PR Context

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074

PR Checklist


This change is Reviewable

@ghost ghost assigned Ilya (iSazonov) Aug 11, 2020
@iSazonov Ilya (iSazonov) added Review - Maintainer The PR/issue needs a review from the PowerShell repo Maintainers CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log labels Aug 11, 2020
@ghost ghost added the Review - Needed The PR is being reviewed label Aug 19, 2020
@ghost

Copy link
Copy Markdown

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

@xtqqczze

Copy link
Copy Markdown
Contributor Author

Codacy issue is not new.

@xtqqczze

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) can you please review?

@daxian-dbw

Copy link
Copy Markdown
Member

@PowerShell/powershell-maintainers reviewed this PR and agreed to accept it for 7.2-preview, namely delay merging this PR until after 7.1-RC1 release branch gets created. The decision is based on the following reason(s):

The changes make sense, but they are actual code changes and the chance of regression is relatively high. So it requires line-by-line review to make sure changes are correct.

@ghost ghost removed the Review - Needed The PR is being reviewed label Sep 1, 2020
@daxian-dbw Dongbo Wang (daxian-dbw) removed the Review - Maintainer The PR/issue needs a review from the PowerShell repo Maintainers label Sep 1, 2020
@iSazonov
Ilya (iSazonov) marked this pull request as draft September 2, 2020 03:16
@iSazonov

Copy link
Copy Markdown
Collaborator

Set to Draft till 7.2 Preview1.

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Sep 5, 2020
@ghost ghost added the Stale label Sep 20, 2020
@ghost

Copy link
Copy Markdown

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.

@ghost ghost closed this Sep 30, 2020
@iSazonov

Copy link
Copy Markdown
Collaborator

xtqqczze Is it still Draft?

@ghost ghost removed the Stale label Oct 16, 2020
@xtqqczze
xtqqczze marked this pull request as ready for review October 22, 2020 14:12
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Oct 22, 2020
@xtqqczze xtqqczze changed the title Fix IDE0074: Use compound assignment Fix IDE0074: Use coalesce compound assignment Oct 22, 2020

@TravisEz13 Travis Plunk (TravisEz13) left a comment

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.

Reviewed 11 out of 55 files.

@TravisEz13

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) Please remind me in 7 days

@xtqqczze xtqqczze changed the title Fix IDE0074: Use coalesce compound assignment Enable IDE0074: Use coalesce compound assignment Oct 26, 2020
@ghost ghost added the Review - Needed The PR is being reviewed label Nov 3, 2020
@ghost

Copy link
Copy Markdown

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

@iSazonov

Copy link
Copy Markdown
Collaborator

xtqqczze Please resolve merge conflicts.

@ghost ghost removed the Review - Needed The PR is being reviewed label Nov 5, 2020
@xtqqczze

xtqqczze commented Nov 5, 2020

Copy link
Copy Markdown
Contributor Author

Resolved merge conflicts.

@iSazonov

Copy link
Copy Markdown
Collaborator

Travis Plunk (@TravisEz13) Do you want to continue the code review?

@ghost ghost added the Review - Needed The PR is being reviewed label Nov 13, 2020
@ghost

Copy link
Copy Markdown

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

@xtqqczze

Copy link
Copy Markdown
Contributor Author

Ilya (@iSazonov) Can we merge?

@iSazonov
Ilya (iSazonov) merged commit 0d1ea73 into PowerShell:master Nov 25, 2020
@ghost ghost removed the Review - Needed The PR is being reviewed label Nov 25, 2020
@iSazonov Ilya (iSazonov) added this to the 7.2.0-preview.2 milestone Nov 25, 2020
@xtqqczze

Copy link
Copy Markdown
Contributor Author

Ilya (@iSazonov) CodeFactor is showing 3542 fixed issues for this PR taking us from grade F to grade D. Unfortunately the fixed issues list is not accurate :(

@iSazonov

Ilya (iSazonov) commented Nov 26, 2020

Copy link
Copy Markdown
Collaborator

xtqqczze Perhaps it is because the PR was old.

You could ask them https://www.codefactor.io/contact or twitter.

Quality software, faster.

@xtqqczze

xtqqczze commented Dec 2, 2020

Copy link
Copy Markdown
Contributor Author

xtqqczze Perhaps it is because the PR was old.

You could ask them https://www.codefactor.io/contact or twitter.

Issue opened: codefactor-io/codefactor#27.

@ghost

Copy link
Copy Markdown

🎉v7.2.0-preview.2 has been released which incorporates this pull request.:tada:

Handy links:

@xtqqczze

Copy link
Copy Markdown
Contributor Author

xtqqczze we have prioritized this ticket and it is currently Work-In-Progress. Some updates have already been pushed to production so you should already see improved analysis results for C# 8.0 and 9.0. The full scope will be rolled out by the end of January 2021.

Originally posted by Kestas (@kaskas) in codefactor-io/codefactor#27 (comment)

@xtqqczze
xtqqczze deleted the IDE0074 branch March 22, 2021 23:10
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/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 size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants