Remove redundant whitespace between parameters with new option (disabled by default) in UseConsistentWhitespace by bergmeister · Pull Request #1392 · PowerShell/PSScriptAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 409
Conversation
PR Summary
Disabled by default because it is new. The plan is to later add an option to the vs code extension and pending positive feedback we can then later enable it by default.
The only case that was excluded by design is when the user uses the -ParameterName:$ParameterValue syntax as some people might prefer 0 or 1 whitespace here, the rule leaves those cases completely untouched.
PR Checklist
- PR has a meaningful title
- Use the present tense and imperative mood when describing your changes
- Summarized changes
- Change is not breaking
- Make sure all
.cs,.ps1and.psm1files have the correct copyright header - Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
- 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.
- If the PR is work in progress, please add the prefix
bergmeister
changed the title
Remove redundant white space between parameters with new option (disabled by default) in UseConsistentWhitespace
Remove redundant whitespace between parameters with new option (disabled by default) in UseConsistentWhitespace
…ghtExtent variable, which broke build. Variable is used 2 times and makes code more readable, therefore keeping it
@rjmholt Thanks for the review, I addressed all recommendations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters