Skip to content

[Freshness] PSScriptAnalyzer - AvoidAssignmentToAutomaticVariable#397

Merged
michaeltlombardi merged 4 commits into
MicrosoftDocs:mainfrom
Xelu86:AvoidAssignmentToAutomaticVariable_update
May 28, 2026
Merged

[Freshness] PSScriptAnalyzer - AvoidAssignmentToAutomaticVariable#397
michaeltlombardi merged 4 commits into
MicrosoftDocs:mainfrom
Xelu86:AvoidAssignmentToAutomaticVariable_update

Conversation

@Xelu86
Copy link
Copy Markdown
Contributor

@Xelu86 Xelu86 commented May 28, 2026

PR Summary

Update PSScriptAnalyzer AvoidAssignmentToAutomaticVariable article.

Fixes AB#581950

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit e243105:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit fb315b9:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit 7799932:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@Xelu86 Xelu86 marked this pull request as ready for review May 28, 2026 19:48
@Xelu86 Xelu86 requested a review from sdwheeler as a code owner May 28, 2026 19:48
Copilot AI review requested due to automatic review settings May 28, 2026 19:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the documentation for the PSScriptAnalyzer rule AvoidAssignmentToAutomaticVariable to clarify guidance and modernize wording.

Changes:

  • Refreshes the rule description and instructions, adding a link-reference to about_Automatic_Variables
  • Renames example headings to “Noncompliant” and “Preferred”
  • Updates ms.date metadata and adds a reference link definition

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

@learn-build-service-prod
Copy link
Copy Markdown

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit d2d4758:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)

For more details, please refer to the build report.

@michaeltlombardi michaeltlombardi merged commit fb56836 into MicrosoftDocs:main May 28, 2026
4 checks passed
@Xelu86 Xelu86 deleted the AvoidAssignmentToAutomaticVariable_update branch May 28, 2026 20:16
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

Successfully merging this pull request may close these issues.

3 participants