Handle cases where the Signature generator fails catastrophically by JamesWTruher · Pull Request #1661 · PowerShell/PSScriptAnalyzer
PR Summary
In the profile collector, there are some cases when we attempt to generate a method signature the framework will generate a platform not supported exception which causes the profile generation to fail.
We're not yet shipping the collector as a standalone module (as we think we may change it in the future), but we would like the functionality to work correctly.
PR Checklist
- PR has a meaningful title
- Use the present tense and imperative mood when describing your changes
- Summarized changes
- Change is not breaking
- Make sure all
.cs,.ps1and.psm1files have the correct copyright header - Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
- This PR is ready to merge and is not Work in Progress.
- If the PR is work in progress, please add the prefix
WIP:to the beginning of the title and remove the prefix when the PR is ready.
- If the PR is work in progress, please add the prefix