Enable IDE0074: Use coalesce compound assignment - #13396
Conversation
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
Codacy issue is not new. |
|
Travis Plunk (@TravisEz13) can you please review? |
|
@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):
|
|
Set to 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? |
Travis Plunk (TravisEz13)
left a comment
There was a problem hiding this comment.
Reviewed 11 out of 55 files.
|
PoshChan-Bot (@PoshChan) Please remind me in 7 days |
|
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. |
|
Resolved merge conflicts. |
|
Travis Plunk (@TravisEz13) Do you want to continue the code review? |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
Ilya (@iSazonov) Can we merge? |
|
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 :( |
|
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. |
|
🎉 Handy links: |
Originally posted by Kestas (@kaskas) in codefactor-io/codefactor#27 (comment) |
* Autofix IDE0074: Use compound assignment
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
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.This change is