We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Script Analyzer records use the default ToString(), which merely displays the type.
This means that to test the result of a script analyzer record with a regex, one needs to dig into subproperties.
It also means that records will not render ideally when stringified.
Proposed technical implementation details (optional)
[Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord] should override .ToString() method to output the message.
[Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord]
The text was updated successfully, but these errors were encountered:
Adding DiagnosticRecord.ToString() (Fixes PowerShell#1945)
64774f3
Adding ToString() methods to [CorrectionExtent] and [DiagnosticRecord] (
e22c65f
#1946) * Adding DiagnosticRecord.ToString() (Fixes #1945) * Adding CorrectionExtent.ToString() (Fixes #1944) --------- Co-authored-by: James Brundage <@github.com>
Successfully merging a pull request may close this issue.
Script Analyzer records use the default ToString(), which merely displays the type.
This means that to test the result of a script analyzer record with a regex, one needs to dig into subproperties.
It also means that records will not render ideally when stringified.
Proposed technical implementation details (optional)
[Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord]
should override .ToString() method to output the message.The text was updated successfully, but these errors were encountered: