{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1429","repository_url":"https://api.github.com/repos/PowerShell/vscode-powershell","labels_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1429/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1429/comments","events_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1429/events","html_url":"https://github.com/PowerShell/vscode-powershell/issues/1429","id":340594070,"node_id":"MDU6SXNzdWUzNDA1OTQwNzA=","number":1429,"title":"Inaccurate PSScriptAnalyzer \"Line has trailing whitespace\" errors since 1.8.0","user":{"login":"stukey","id":12292623,"node_id":"MDQ6VXNlcjEyMjkyNjIz","avatar_url":"https://avatars0.githubusercontent.com/u/12292623?v=4","gravatar_id":"","url":"https://api.github.com/users/stukey","html_url":"https://github.com/stukey","followers_url":"https://api.github.com/users/stukey/followers","following_url":"https://api.github.com/users/stukey/following{/other_user}","gists_url":"https://api.github.com/users/stukey/gists{/gist_id}","starred_url":"https://api.github.com/users/stukey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stukey/subscriptions","organizations_url":"https://api.github.com/users/stukey/orgs","repos_url":"https://api.github.com/users/stukey/repos","events_url":"https://api.github.com/users/stukey/events{/privacy}","received_events_url":"https://api.github.com/users/stukey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-12T11:14:20Z","updated_at":"2018-07-12T23:48:29Z","closed_at":null,"author_association":"NONE","body":"Since the update to the PowerShell Extension 1.8.0 (and 1.8.1) I am seeing 100s of alerts about my scripts in the 'Problems' section of VSCode indicating \"[PSScriptAnalyzer] Line has trailing whitespace (PSAvoidTrailingWhitespace)\". This rule in the script analzyer seems to be extremely unreliable since it's highlighting many lines of code that do not have any trailing or leading spaces - mainly in code that is tab intended or where text strings span across multiple lines (word wrap enabled). Example from a Param section in a custom function:\r\n \r\n              [CmdletBinding()]\r\n      Param(\r\n            [ValidateNotNullOrEmpty()][Parameter(Mandatory=$True,Position=1)][string]$ExchangeGuid\r\n      )\r\n\r\nThe analyzer indicates that the closing parenthesis has trailing whitespace, but it does not. The file is a .ps1 using Windows 1252 encoding and CRLF.\r\n\r\nAlso disabling this rule via the command palette, PowerShell: Select PsScriptAnalyzerRules doesn’t seem to stay disabled across restarts. Each time I restart VSCode the option is re-enabled. And most of the time I can’t actually load the Select PsScriptAnalyzerRules dialog - it never appears or takes many minutes to appear which is very frustrating."},"comment":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/comments/404684459","html_url":"https://github.com/PowerShell/vscode-powershell/issues/1429#issuecomment-404684459","issue_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1429","id":404684459,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDY4NDQ1OQ==","user":{"login":"SeeminglyScience","id":24977523,"node_id":"MDQ6VXNlcjI0OTc3NTIz","avatar_url":"https://avatars3.githubusercontent.com/u/24977523?v=4","gravatar_id":"","url":"https://api.github.com/users/SeeminglyScience","html_url":"https://github.com/SeeminglyScience","followers_url":"https://api.github.com/users/SeeminglyScience/followers","following_url":"https://api.github.com/users/SeeminglyScience/following{/other_user}","gists_url":"https://api.github.com/users/SeeminglyScience/gists{/gist_id}","starred_url":"https://api.github.com/users/SeeminglyScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeeminglyScience/subscriptions","organizations_url":"https://api.github.com/users/SeeminglyScience/orgs","repos_url":"https://api.github.com/users/SeeminglyScience/repos","events_url":"https://api.github.com/users/SeeminglyScience/events{/privacy}","received_events_url":"https://api.github.com/users/SeeminglyScience/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T23:48:29Z","updated_at":"2018-07-12T23:48:29Z","author_association":"COLLABORATOR","body":"I would still expect workspace settings to be controlled via a the same psd1 file.  The only difference is an additional setting that may control the default experience only if the workspace does not have a `PSScriptAnalyzerSettings.psd1`."}}
{"actor":{"display_login":"SeeminglyScience"}}