You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware, generally one cannot use the formatting settings and run Invoke-ScriptAnalyzer against them to ensure the style is compliant. I think this is just one of a few things that you'll find, but it's definitely worthwhile boing them down individually and raising them as you did.
It happens exactly here:
I am thinking we could maybe enhance the check in there to only check for whitespace if the previous token is on the same line, which is the issue here I think, I opened a PR with a fix below @peetrike
Steps to reproduce
Expected behavior
When both rules are used, it should not trigger the PSUseConsistentWhitespace rule.
Actual behavior
When you add 1 space before open brace, it doesn't report violation.
If the whole code block is indented (more than 1 space before open brace), it reports again the problem.
Environment data
The text was updated successfully, but these errors were encountered: