◐ Shell
clean mode source ↗

feat(tests): added closing bracket test for formatting presets by o-l-a-v · Pull Request #2161 · PowerShell/PSScriptAnalyzer

Pull request overview

Adds regression-style tests for Invoke-Formatter behavior around if/else close-brace placement across formatting presets, to preserve expected formatting semantics while broader preset work remains blocked upstream.

Changes:

  • Adds new Pester context validating if/else formatting output for CodeFormattingAllman, CodeFormattingOTBS, and CodeFormattingStroustrup.
  • Introduces canonical input/expected script definitions for the three brace styles and asserts formatter round-trips between them.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.