-
Notifications
You must be signed in to change notification settings - Fork 393
Add CheckInnerBrace and CheckPipe options to PSUseConsistentWhitespace #1092
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
Merged
bergmeister
merged 24 commits into
PowerShell:development
from
bergmeister:UseConsistenWhiteSpace_InnerCurlyAndPipe
Mar 5, 2019
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7e740b2
Check for 1 whitespace AFTER curly brace in new InnerCurly option
bergmeister cebbaad
check for one space in closing of inner brace
bergmeister 5f444bd
add check for pipes. TODO: messages
bergmeister 1052423
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister 1fbb541
Merge branch 'development' into UseConsistenWhiteSpace_InnerCurlyAndPipe
bergmeister 60885b0
update settings files and add first set of tests for curly braces. TO…
bergmeister 692969e
fix new line handling for innerbrace
bergmeister 5ab67c1
fix suggested corrections and add another test case for inner brace
bergmeister a4f5c8d
order settings alphabetically and add tests for checkpipe
bergmeister b45cce5
fix test that returned 2 warnings now due to checkinnerbrace
bergmeister 0668df9
fix innerPipe and write documentation
bergmeister d74412e
tweak backtick scenarios
bergmeister 43b5882
fix 1 failing test
bergmeister 73edc10
customise warning messages
bergmeister 6b362d9
swap messages to be correct
bergmeister c872d1c
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister ff3e3d1
add more test cases and fix small bug whereby the missing space befor…
bergmeister e4d6879
enforce whitespace also if there is more than 1 curly brace. TODO: ad…
bergmeister fb57292
add test cases for nested parenthesis and add validation to test help…
bergmeister 196b112
add test case for more than 1 space inside curly braces and tidy up t…
bergmeister 0bc8a97
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister d15ba9d
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister c46ae83
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister 59963b2
Merge branch 'development' into UseConsistenWhiteSpace_InnerCurlyAndPipe
bergmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can these loops be combined in some way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you worried about it in terms of performance or just code maintenance? In the latter case, it's tricky, in the former case we call
tokenOperations.GetTokenNodes
foreach rule setting separately, so 6 times more than needed. I am not sure if querying for all token kinds once and then putting them into a separate list would really be faster but I am not an expert at performance optimisation.