Repository navigation
Add pipeline comment indentation regression tests - #2260
Merged
Christoph Bergmeister (bergmeister) merged 1 commit intoOct 27, 2026
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot CLI created this pull request from a session on behalf of
Christoph Bergmeister (bergmeister)
October 27, 2026 18:30
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused test-only changes have no identified blocking issues, though CI results remain pending.
No open issues 🎉
What changed in this PR
Adds test-only regression coverage for pipeline comment indentation, extending #2231’s work to preserve relative indentation within comment runs.
Changes:
- Covers
IncreaseIndentationForFirstPipelineandIncreaseIndentationAfterEveryPipeline, including nested comment offsets and second-stage command indentation. - Verifies no analyzer violations, unchanged formatter output, and formatter idempotence.
| File | Description |
|---|---|
| Tests/Rules/UseConsistentIndentation.tests.ps1 | Adds parameterized regression tests for comment-run indentation under both pipeline modes. |
Review effort: Balanced
Christoph Bergmeister (bergmeister)
marked this pull request as ready for review
October 27, 2026 18:34
Christoph Bergmeister (bergmeister)
requested review from
a team and
Christoph Bergmeister (bergmeister)
as code owners
October 27, 2026 18:34
Christoph Bergmeister (bergmeister)
removed this pull request from stack #2261
October 27, 2026 18:39
Christoph Bergmeister (bergmeister)
merged commit Oct 27, 2026
27e6f68
into
copilot/fix-psuseconsistentindentation-issue
11 checks passed
Christoph Bergmeister (bergmeister)
deleted the
review-pr-2231-comment-tests
branch
October 27, 2026 18:41
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Summary
Add regression coverage for comment-run indentation with
IncreaseIndentationForFirstPipelineandIncreaseIndentationAfterEveryPipeline. The test verifies nested comment offsets, expected indentation through a second pipeline stage, analyzer cleanliness, and formatter idempotence. This test-only follow-up targets the head branch of #2231.PR Checklist