-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Use is not syntax and remove unnecessary parentheses
#13323
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
Conversation
-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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) <32407840+vexx32@users.noreply.github.com>
…letionAnalysis.cs Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
vexx32
left a comment
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.
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. |
daxian-dbw
left a comment
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.
LGTM. Thanks!
|
@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.