Skip to content

Sync docs changes with source repo#429

Merged
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w591525-rule-sync-docs-src
Jun 25, 2026
Merged

Sync docs changes with source repo#429
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w591525-rule-sync-docs-src

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Sync docs changes with source repo

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 25, 2026 21:11
@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 74746c3:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AlignAssignmentStatement.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidDefaultValueSwitchParameter.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidExclaimOperator.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalAliases.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalFunctions.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalVars.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidInvokingEmptyMembers.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidNullOrEmptyHelpMessageAttribute.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidReservedWordsAsFunctionNames.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidShouldContinueWithoutForce.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidTrailingWhitespace.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingAllowUnencryptedAuthentication.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingConvertToSecureStringWithPlainText.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPlainTextForPassword.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPositionalParameters.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingWriteHost.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/DSCUseVerboseMessageInDSCResource.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/MissingModuleManifestField.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/PossibleIncorrectUsageOfAssignmentOperator.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/ProvideCommentHelp.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/ShouldProcess.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseApprovedVerbs.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCmdlets.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCommands.md ✅Succeeded View (ps-modules)

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.

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

This PR syncs PSScriptAnalyzer rule documentation pages in reference/docs-conceptual/PSScriptAnalyzer/Rules/ with updates from the upstream/source repo, primarily standardizing formatting and refreshing rule guidance/examples.

Changes:

  • Normalizes markdown formatting (example style, link-reference spacing) across many rule pages.
  • Reorganizes/expands some rule content (for example, parameter sections and additional explanatory examples).
  • Updates select rule text/examples to match upstream—though a few updates introduce doc issues that should be corrected before merge.

Reviewed changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseUsingScopeModifierInNewRunspaces.md Updates applicability note for workflows/InlineScript (currently introduces an incorrect PS version statement).
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseOutputTypeCorrectly.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseConstrainedLanguageMode.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleTypes.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCommands.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCmdlets.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseApprovedVerbs.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/ShouldProcess.md Minor wording tweak + removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/ProvideCommentHelp.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/PossibleIncorrectUsageOfAssignmentOperator.md Updates front-matter description and reformats a sample (front-matter change needs correction).
reference/docs-conceptual/PSScriptAnalyzer/Rules/MissingModuleManifestField.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/DSCUseVerboseMessageInDSCResource.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingWriteHost.md Reformats function examples and cleans link-reference spacing.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPositionalParameters.md Aligns hashtable formatting in an example.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPlainTextForPassword.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingConvertToSecureStringWithPlainText.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingAllowUnencryptedAuthentication.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidTrailingWhitespace.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidShouldContinueWithoutForce.md Minor wording/formatting tweak + removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidReservedWordsAsFunctionNames.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidNullOrEmptyHelpMessageAttribute.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidInvokingEmptyMembers.md Adds punctuation to front-matter description + cleans link-reference spacing.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalVars.md Adds punctuation to front-matter description + cleans link-reference spacing.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalFunctions.md Removes stray whitespace before link references.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalAliases.md Adds punctuation to front-matter description and removes a version-availability note.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidExclaimOperator.md Reorders/clarifies “Parameters” vs “Configure rule” section content.
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidDefaultValueSwitchParameter.md Adds a “begin” block to compliant example (currently redundant/misleading).
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md Adds TODO block and a “How” section (TODO should not ship in published docs).
reference/docs-conceptual/PSScriptAnalyzer/Rules/AlignAssignmentStatement.md Adds additional explanatory examples for alignment-related parameters.

💡 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 34d7d82:

✅ Validation status: passed

File Status Preview URL Details
reference/docs-conceptual/PSScriptAnalyzer/Rules/AlignAssignmentStatement.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidAssignmentToAutomaticVariable.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidDefaultValueSwitchParameter.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidExclaimOperator.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalAliases.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalFunctions.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidGlobalVars.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidInvokingEmptyMembers.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidNullOrEmptyHelpMessageAttribute.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidReservedWordsAsFunctionNames.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidShouldContinueWithoutForce.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidTrailingWhitespace.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingAllowUnencryptedAuthentication.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingConvertToSecureStringWithPlainText.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPlainTextForPassword.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingPositionalParameters.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingWriteHost.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/DSCUseVerboseMessageInDSCResource.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/MissingModuleManifestField.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/PossibleIncorrectUsageOfAssignmentOperator.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/ProvideCommentHelp.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/ShouldProcess.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseApprovedVerbs.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCmdlets.md ✅Succeeded View (ps-modules)
reference/docs-conceptual/PSScriptAnalyzer/Rules/UseCompatibleCommands.md ✅Succeeded View (ps-modules)

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit 1123b85 into MicrosoftDocs:main Jun 25, 2026
4 checks passed
@sdwheeler sdwheeler deleted the sdw-w591525-rule-sync-docs-src branch June 26, 2026 00:07
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