GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — The PSAvoidTrailingWhitespace rule is not applied when using Invoke-Formatter · Issue #1992 · PowerShell/PSScriptAnalyzer Closed DescriptionSteps to reproduceUsing $script = @" Function Get-Example { 'Example' } "@ $settings = @{ IncludeRules = @("PSAvoidTrailingWhitespace") } $formatted = Invoke-Formatter -ScriptDefinition $script -Settings $settings Out-File -FilePath ./result.ps1 -InputObject $formatted -Encoding utf8 -NoNewline Invoke-ScriptAnalyzer -Path ./result.ps1 Expected behaviorActual behaviorEnvironment data> $PSVersionTable Name Value ---- ----- PSVersion 5.1.22621.2506 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22621.2506 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 > (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() } 1.22.0 Activity
MetadataMetadataAssigneesTypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |