Enable CA2208: Instantiate argument exceptions correctly#13898
Enable CA2208: Instantiate argument exceptions correctly#13898xtqqczze wants to merge 5 commits intoPowerShell:masterfrom
Conversation
2de4f05 to
4d04613
Compare
src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs
Outdated
Show resolved
Hide resolved
fe01162 to
6efd015
Compare
iSazonov
left a comment
There was a problem hiding this comment.
Please revert types. We shouldn't change types.
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFromMarkdownCommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/ComInterop/InteropServices/Variant.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/namespaces/FileSystemProvider.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs
Outdated
Show resolved
Hide resolved
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
closing/reopening to restart tests |
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs
Outdated
Show resolved
Hide resolved
|
Rebased and fixed up to address @iSazonov review. |
|
|
src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
Show resolved
Hide resolved
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
I think now it is more useful benefit from new APIs like |
Fix: #13909.
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208