Open
Description
Currently the -Fix
-Confirm
(and -WhatIf
) common parameters aren't very specific on what and how PSScriptAnalyzer is about to correct the found violations:
invoke-scriptanalyzer .\Test.ps1 -fix -Confirm
Confirm
Are you sure you want to perform this action?
Performing the operation "Analyzing and fixing file C:\Users\Gebruiker\Scripts\Test\Rule\Test.ps1" on target "C:\Users\Gebruiker\Scripts\Test\Rule\Test.ps1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): n
I would expect a more specific message of what and how a violation is changed, e.g.:
invoke-scriptanalyzer .\Test.ps1 -fix -Confirm
Confirm
Are you sure you want to perform this action?
Changing "$pascalCase = 'Test'" to "$PascalCase = 'Test'" at line 10 character 5 of file "Analyzing and fixing file C:\Users\Gebruiker\Scripts\Test\Rule\Test.ps1" on target "C:\Users\Gebruiker\Scripts\Test\Rule\Test.ps1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): n