◐ Shell
clean mode source ↗

Fix typos in resource strings and associated C# references by casuffitsharp · Pull Request #2163 · PowerShell/PSScriptAnalyzer

Pull request overview

This PR cleans up user-facing rule resource strings by correcting typos/grammar and aligns C# rule implementations to renamed .resx resource keys so the strongly-typed Strings references continue to compile.

Changes:

  • Fixed multiple typos/wording issues in Rules/Strings.resx.
  • Renamed misspelled resource keys to correctly spelled names.
  • Updated C# rule files to reference the new resource key/property names.

Reviewed changes

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

File Description
Rules/UseShouldProcessForStateChangingFunctions.cs Updates Strings.* reference to the corrected ...Description resource key.
Rules/UseLiteralInitializerForHashtable.cs Replaces misspelled resource property names with corrected UseLiteralInitializer... keys.
Rules/PossibleIncorrectComparisonWithNull.cs Updates to the corrected ...SuggestedCorrectionDescription resource key.
Rules/Strings.resx Fixes typos/grammar in values and renames several misspelled resource keys.

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