Skip to content
New issue

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

Do not enable PSAvoidTrailingWhitespace rule by default as it currently flags whitespace-only lines as well and users don't like it #704

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented Jul 12, 2018

Despite modern editors having the ability to eliminate redundant whitespace when saving the file automatically, people are still upset by PSSA pointing out whitespace for whitespace-only lines by the rule PSAvoidTrailingWhitespace. Until the rule is customisable for that with a potential change of the default behaviour, it is probably better to not have this rule enabled by default. This rule got enabled by default in version1.8.0 of the vscode extension along with other rules.
References:
PowerShell/PSScriptAnalyzer#1033
PowerShell/PSScriptAnalyzer#1036
PowerShell/vscode-powershell#1429
PowerShell/vscode-powershell#1432

Copy link
Collaborator

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants