Skip to content

Sync more changes in rule docs#431

Merged
sdwheeler merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w591525-rule-sync-docs-src
Jun 26, 2026
Merged

Sync more changes in rule docs#431
sdwheeler merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w591525-rule-sync-docs-src

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Sync more changes in rule docs

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.

Copilot AI review requested due to automatic review settings June 26, 2026 00:09
@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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates and synchronizes several PSScriptAnalyzer rule reference documents to improve clarity, correctness, and consistency in guidance for module authors and script analysis users.

Changes:

  • Clarifies export-field guidance (including using @() instead of $null) and fixes/standardizes wording across multiple rule docs.
  • Corrects/standardizes phrasing around PowerShell platform identifiers and compatibility descriptions.
  • Cleans up the rules index README text and fixes Markdown formatting in a NOTE block.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseToExportFieldsInManifest.md Adds explicit guidance to use empty arrays for no-export scenarios to avoid autodiscovery costs.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleTypes.md Refines wording describing PowerShell platform name format.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCommands.md Refines wording describing PowerShell platform name format.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCmdlets.md Updates configuration example and parameter wording for compatibility targeting.
reference/docs-conceptual/PSScriptAnalyzer/Rules/ReviewUnusedParameter.md Fixes grammatical issue in the rule description.
reference/docs-conceptual/PSScriptAnalyzer/Rules/README.md Removes redundant text and updates wording in the rules index introduction.
reference/docs-conceptual/PSScriptAnalyzer/Rules/MissingModuleManifestField.md Improves clarity on required manifest key/value expectations.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidOverwritingBuiltInCmdlets.md Fixes NOTE block formatting so it renders correctly.

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

Comment on lines 9 to +12
The PSScriptAnalyzer module includes the following built-in rule definitions. For rules that
support settings, you can enable or disable them by setting the `Enable` configuration property in
a custom settings file. Rules listed as _Always enabled_ don't expose a per-rule `Enable` property.
There are two way to avoid using these rules:
There are two ways to avoid using these rules:
@sdwheeler sdwheeler merged commit 49348e8 into MicrosoftDocs:main Jun 26, 2026
5 checks passed
@sdwheeler sdwheeler deleted the sdw-w591525-rule-sync-docs-src branch June 26, 2026 00:12
sdwheeler added a commit that referenced this pull request Jun 26, 2026
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.

2 participants