GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reject background pipelines as DSC resources by Copilot · Pull Request #2290 · PowerShell/PSScriptAnalyzer

Conversation

Copilot AI commented Oct 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Background pipelines inside fallback configuration ASTs could be mistaken for DSC resource declarations, suppressing expected Get- corrections.

  • Resource detection: Exclude background command pipelines and background following-line body pipelines.
  • Regressions: Cover both same-line and following-line & forms, including:
    Verb Argument {} &
    gci .
    {} &

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Initial plan
001a9c9
Copilot AI assigned Copilot and Christoph Bergmeister (bergmeister) Oct 28, 2026
@bergmeister
Christoph Bergmeister (bergmeister) added this pull request to stack #2291 October 28, 2026 23:47
Copilot started work on behalf of Christoph Bergmeister (bergmeister) October 28, 2026 23:47
View session
@bergmeister
Reject background pipelines as DSC resources
2d122fd
Co-authored-by: bergmeister <[email protected]>
Copilot AI changed the title [WIP] Fix code as per comments in review thread Reject background pipelines as DSC resources Oct 28, 2026
Copilot finished work on behalf of Christoph Bergmeister (bergmeister) October 28, 2026 23:54
Copilot AI requested a review from Christoph Bergmeister (bergmeister) October 28, 2026 23:54
@bergmeister
Christoph Bergmeister (bergmeister) removed this pull request from stack #2291 October 29, 2026 00:12
Copilot started work to fix failing Actions workflows on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 00:12
View session
@bergmeister
Guard background AST API for CoreCLR
eecf490
Co-authored-by: bergmeister <[email protected]>
Copilot finished work on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 00:21
@bergmeister
Christoph Bergmeister (bergmeister) requested a balanced review from Copilot October 29, 2026 06:56
Copilot started reviewing on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 06:56
View session
Copilot AI reviewed Oct 29, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unconditional test counts fail in Windows PowerShell 5.1 CI because the new guarded cases are excluded, so expectations must be version-dependent or the added cases moved to PowerShell 6+ tests.

1 open issue
  • High severity Make pipeline test counts compatible with Windows PowerShell 5.1 · New
What changed in this PR

This PR corrects fallback DSC resource detection so background pipelines remain eligible for alias expansion and missing Get- prefix corrections.

Changes:

  • Reject background command pipelines and background following-line body pipelines as DSC resources.
  • Add regression cases for both forms and update diagnostic counts.
File Description
Tests/​Rules/​AvoidUsingAlias.tests.ps1 Adds same-line and following-line background pipeline regressions.
Rules/​AvoidAlias.cs Adds Core-only background pipeline checks to DSC resource detection.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Tests/Rules/AvoidUsingAlias.tests.ps1 Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bergmeister
Christoph Bergmeister (bergmeister) added this pull request to stack #2292 October 29, 2026 07:04
Copilot started work to fix failing Actions workflows on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 07:14
View session
@bergmeister
Make background pipeline test expectations version-aware
f852e80
Co-authored-by: bergmeister <[email protected]>
Copilot finished work on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 07:18
Copilot started work on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 07:58
View session
Copilot finished work on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 07:59
@bergmeister
Christoph Bergmeister (bergmeister) requested a balanced review from Copilot October 29, 2026 08:39
Copilot started reviewing on behalf of Christoph Bergmeister (bergmeister) October 29, 2026 08:40
View session
Copilot AI reviewed Oct 29, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues requiring changes.

No open issues 🎉

1 resolved since last review
  • High severity Make pipeline test counts compatible with Windows PowerShell 5.1

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bergmeister
Christoph Bergmeister (bergmeister) removed this pull request from stack #2292 October 29, 2026 09:10
@bergmeister Christoph Bergmeister (bergmeister) unassigned Copilot Oct 29, 2026
@bergmeister
Christoph Bergmeister (bergmeister) marked this pull request as ready for review October 29, 2026 09:10
@bergmeister
Christoph Bergmeister (bergmeister) requested a review from a team as a code owner October 29, 2026 09:10
@bergmeister
Christoph Bergmeister (bergmeister) merged commit 3b14fd8 into copilot/fix-auto-correct-aliases Oct 29, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bergmeister
Christoph Bergmeister (bergmeister) deleted the copilot/fix-comments-in-review-thread branch October 29, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@bergmeister Christoph Bergmeister (bergmeister) Awaiting requested review from bergmeister bergmeister is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bergmeister Christoph Bergmeister (bergmeister)

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bergmeister
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.