Use is not syntax and remove unnecessary parentheses#13323
Use is not syntax and remove unnecessary parentheses#13323daxian-dbw merged 6 commits intoPowerShell:masterfrom
is not syntax and remove unnecessary parentheses#13323Conversation
-replace '\(!\(([^)]+) is ([^)]+)\)\)', '($1 is not $2)'
|
@daxian-dbw Can you restart CI? |
|
It appears Codacy (SonarCSharp) does not understand C# 9 pattern matching. |
|
/azp help |
Supported commands
See additional documentation. |
|
/azp list |
|
It looks like the same test is failing across all platforms, implying a regression. In that case, I think it's safer for us not to take this change |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 13323 in repo PowerShell/PowerShell |
vexx32
left a comment
There was a problem hiding this comment.
Found a couple places where the substitution mangled the original logic. Once we get those fixed we should be right to go. 🙂
src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs
Outdated
Show resolved
Hide resolved
...t.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Show resolved
Hide resolved
Co-authored-by: Joel Sallow (/u/ta11ow) <[email protected]>
…letionAnalysis.cs Co-authored-by: Dongbo Wang <[email protected]>
vexx32
left a comment
There was a problem hiding this comment.
Looks good to me, thanks for sorting this out! 💖
|
I have fully reviewed this PR and it is now ready to merge as far as I am concerned. |
|
@PoshChan Please remind me in 1 hour |
|
@daxian-dbw, this is the reminder you requested 1 hour ago |
|
this "is not "syntax make my build failed using visualstudio2019 |
|
🎉 Handy links: |
PR Summary
Instead of the huge changes in #13286, a more modest change using
is notsyntax to remove parentheses.PR Context
#13286
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.