Skip to content

WIP Add CheckPipeForRedundantWhitespace option for PSSA 1.19: powershell.codeFormatting.trimWhitespaceAroundPipe #2467

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

Conversation

bergmeister
Copy link
Contributor

PR Summary

Turned off by default to reduce potential impact if people don't like it or should there be bugs. PR ready but pending PSSA release.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM

@bergmeister
Copy link
Contributor Author

bergmeister commented Mar 4, 2020

@TylerLeonhardt I will move this PR into the other to have only 1 PSSA 1.19.0 PR.
Just one question: We already have the powershell.codeFormatting.whitespaceAroundPipe setting that removes extraneous whitespace or adds whitespace if needed. With the new changes in PSSA this functionality will be split into two settings: The existing one will only add missing whitespace (and remain enabled by default) and the new setting will only remove extranuous whitespace and will be disabled by default. I was thinking of calling the new setting trimWhitespaceAroundPipe but for clarity could we consider renaming the existing one from whitespaceAroundPipe to missingWhitespaceAroundPipe or would you rather not rename an existing setting?

@bergmeister bergmeister changed the title Add CheckPipeForRedundantWhitespace option for PSSA 1.19: powershell.codeFormatting.trimWhitespaceAroundPipe WIP Add CheckPipeForRedundantWhitespace option for PSSA 1.19: powershell.codeFormatting.trimWhitespaceAroundPipe Mar 4, 2020
@bergmeister
Copy link
Contributor Author

Closing in favour of #2674

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.

2 participants