Skip to content

[Freshness] PSScriptAnalyzer - AvoidDefaultValueSwitchParameter#399

Merged
michaeltlombardi merged 4 commits into
MicrosoftDocs:mainfrom
Xelu86:AvoidDefaultValueSwitchParameter_update
May 29, 2026
Merged

[Freshness] PSScriptAnalyzer - AvoidDefaultValueSwitchParameter#399
michaeltlombardi merged 4 commits into
MicrosoftDocs:mainfrom
Xelu86:AvoidDefaultValueSwitchParameter_update

Conversation

@Xelu86
Copy link
Copy Markdown
Contributor

@Xelu86 Xelu86 commented May 28, 2026

PR Summary

Update PSScriptAnalyzer AvoidDefaultValueForMandatoryParameter article.

Fixes AB#581952

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 2045ee0:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidDefaultValueSwitchParameter.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 22:19
Copilot AI review requested due to automatic review settings May 28, 2026 22:19
Copy link
Copy Markdown
Contributor

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 PSScriptAnalyzer rule documentation for AvoidDefaultValueSwitchParameter to clarify recommended switch-parameter usage and modernize the page structure.

Changes:

  • Refreshes the rule rationale text and removes the explicit “How” remediation section in favor of an external guideline link.
  • Renames the example section headings (“Wrong/Correct” → “Noncompliant/Preferred”).
  • Updates the ms.date metadata.

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

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@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 dce2828:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidDefaultValueSwitchParameter.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 43684d6:

✅ Validation status: passed

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

For more details, please refer to the build report.

@michaeltlombardi michaeltlombardi merged commit 685ba97 into MicrosoftDocs:main May 29, 2026
4 checks passed
@Xelu86 Xelu86 deleted the AvoidDefaultValueSwitchParameter_update branch May 29, 2026 22:31
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