Skip to content

Fix comments in CmdletizationCoreResources.resx - #27879

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:comment
Aug 24, 2026
Merged

Fix comments in CmdletizationCoreResources.resx#27879
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:comment

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

The dev rules like {StrContains="CmdletParameterMetadata"} and {StrContains="PSName"} lock values that are missing in the resource string value. This PR fixes those dev rules.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@daxian-dbw
Dongbo Wang (daxian-dbw) marked this pull request as ready for review August 21, 2026 17:51
@daxian-dbw
Dongbo Wang (daxian-dbw) requested a review from a team as a code owner August 21, 2026 17:51
Copilot AI lite review requested due to automatic review settings August 21, 2026 17:51
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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 resource entries in CmdletizationCoreResources.resx to address “dev rule” {StrContains="..."} comment directives that don’t match the corresponding resource values.

Changes:

  • Removes/adjusts {StrContains="..."} directives from select <comment> nodes to avoid locking on substrings not present in the <value>.
  • Edits a few <value> strings to collapse double spaces after periods (user-visible message text change).
  • Simplifies placeholder documentation text in the affected <comment> blocks.
Suppressed comments (2)

src/System.Management.Automation/resources/CmdletizationCoreResources.resx:136

  • This PR is described as fixing dev-rule comments, but this change also alters the user-visible resource text by collapsing the double space after the period ("once. Verify" -> "once. Verify"). If this isn't intended to change message text, keep the original spacing to minimize behavioral diffs.
    <value>The {0} cmdlet defines the {1} parameter set more than once. Verify that the Cmdlet Definition XML does not have duplicate parameter set names and retry.</value>

src/System.Management.Automation/resources/CmdletizationCoreResources.resx:186

  • This PR is described as fixing dev-rule comments, but this change also alters the user-visible resource text by collapsing the double space after the period ("{0}. Verify" -> "{0}. Verify"). If the intent is comment-only changes, consider keeping the original resource string unchanged.
    <value>The value of the Name attribute is not a valid C# identifier: {0}. Verify the Name attribute in the Cmdlet Definition XML, and then try again.</value>

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/System.Management.Automation/resources/CmdletizationCoreResources.resx Outdated
Comment thread src/System.Management.Automation/resources/CmdletizationCoreResources.resx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.6.x-Done CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants