Skip to content

Add exceptions to UseConsistentWhitespace rule #744

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
merged 3 commits into from
Apr 3, 2017

Conversation

kapilmb
Copy link

@kapilmb kapilmb commented Apr 3, 2017

  • Ignore open braces in invocation of magic method. For example, ignore the open brace in (1..5).foreach{$_}.
  • Ignore range operator. For example, do not flag the .. in 1..5.

Resolves PowerShell/PowerShellEditorServices#380

Kapil Borle added 3 commits April 3, 2017 14:24
Adds exception to open brace after `foreach` and `where` magic methods. For example, the open brace in `(1..5).foreach{$_}` will not formatted but the one in `1..5 | foreach{$_}` will be formatted.
@kapilmb kapilmb changed the title Add exception to UseConsistentWhitespace rule Add exceptions to UseConsistentWhitespace rule Apr 3, 2017
Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Excellent!

@kapilmb kapilmb merged commit 6aaa6f4 into development Apr 3, 2017
@kapilmb
Copy link
Author

kapilmb commented Apr 3, 2017

Thanks @daviwil

@kapilmb kapilmb deleted the kapilmb/update-whitespace-rule branch April 3, 2017 22:22
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.

3 participants