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
Typo
In the code $file is defined but never used: [string]$file = $MyInvocation.MyCommand.Definition
[string]$file = $MyInvocation.MyCommand.Definition
We possibly need to add it to the ArgumentList:
$objParams = @{ TypeName = 'Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent' ArgumentList = $startLineNumber, $endLineNumber, $startColumnNumber, $endColumnNumber, $correction, $file, $optionalDescription }
https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/create-custom-rule?view=ps-modules&source=docs
https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/blob/main/reference/docs-conceptual/PSScriptAnalyzer/create-custom-rule.md
@sdwheeler
ea102f70-2dbc-92a0-014f-967097599adf
The text was updated successfully, but these errors were encountered:
Raised PR GH-198
Sorry, something went wrong.
Resolved by #198
No branches or pull requests
Type of issue
Typo
Feedback
In the code $file is defined but never used:
[string]$file = $MyInvocation.MyCommand.Definition
We possibly need to add it to the ArgumentList:
Page URL
https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/create-custom-rule?view=ps-modules&source=docs
Content source URL
https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/blob/main/reference/docs-conceptual/PSScriptAnalyzer/create-custom-rule.md
Author
@sdwheeler
Document Id
ea102f70-2dbc-92a0-014f-967097599adf
The text was updated successfully, but these errors were encountered: