Skip to content

Formatting not symmetrical within parenthesis #136

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

Closed
JVimes opened this issue Jun 17, 2019 · 2 comments
Closed

Formatting not symmetrical within parenthesis #136

JVimes opened this issue Jun 17, 2019 · 2 comments

Comments

@JVimes
Copy link

JVimes commented Jun 17, 2019

Here's before code formatting:

function Invoke-Build([ValidateScript({ /*...*/ })] $param1)
{
}

And after:

#                                     ⮦Space     ⮦No space
function Invoke-Build([ValidateScript( { /*...*/ })] $param1)
{
}

The spacing within the ValidateScript's parenthesis is not symmetrical, and I'd expect it to be.

@Jaykul
Copy link
Member

Jaykul commented Jun 18, 2019

I agree with you, so I'm pretty sure you meant to post this as a bug against the PowerShell/PSScriptAnalyzer project -- or maybe as a comment on PowerShell/PSScriptAnalyzer/issues/1168

@JVimes
Copy link
Author

JVimes commented Jun 18, 2019

Oops, right, wrong repo. I think I meant to do PowerShell/vscode-powershell, but it does appear the formatter is part of the script analyzer, so I'd have been wrong anyway ;)

@JVimes JVimes closed this as completed Jun 18, 2019
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

No branches or pull requests

2 participants