Michael Moynihan
Michael Moynihan
It would be nice if PSScriptAnalyzer Rules were stored in the User Settings / Extensions area (JSON). I ran into this as I wanted to customize which rules apply, and...
I'm Powershell Preview 2020.2.0 and this is still an issue.
I was not looking for a code review... For the purpose of code formatting, It's legal syntax. Can anybody copy this code into their editor and verify there is an...
I'm on VS Code 1.54.1 Powershell 5.1.19041.610 PowerShell Extension 2021.2.2 Windows 10 pro / Version 20H2 (build 9042.867) PSScriptAnalyzer Version 1.19.1
Another test... ``` $script = {function Test-Format([int]$num) { if($num -eq 1){Get-ChildItem -Path 'c:\*.*' | Where-Object {$_.name -like 'test1.*'} | ForEach-Object{Remove-Item -Path $_ | Out-Null}} else{Get-ChildItem -Path 'c:\*.*' | Where-Object {$_.name...
Okay, had to install the module for ISE/Powershell via [ISEScriptAnalyzerAddOn 1.0](https://www.powershellgallery.com/packages/ISEScriptAnalyzerAddOn/1.0) Ran the ``` Invoke-Formatter -ScriptDefinition $script ``` and it has the issue. So this is a problem with PSScriptAnalyzer...
Found a work around in VSCode, kinda... Settings / Extensions / Powershell Configuration / Code Formatting: Pipeline Indentation Style = NoIndentation Mine was set to 'IncreaseIndentationForFirstPipeline'. I can live with...
> Just FYI you can install PSScriptAnalyzer directly on your machine with `Install-Module PSScriptAnalyzer` and you can then run it from the powershell.exe console. Did that, same results.
The problem with using the slide animation, is that the wallpaper won't "slide" with it. The result is the desktop will slide over until on the new screen, then the...