Skip to content

Explain the proper use of a SwitchParameter - #278

Merged
Mikey Lombardi (He/Him) (michaeltlombardi) merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w262071-switch-params
Dec 5, 2024
Merged

Explain the proper use of a SwitchParameter#278
Mikey Lombardi (He/Him) (michaeltlombardi) merged 1 commit into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w262071-switch-params

Conversation

@sdwheeler

@sdwheeler Sean Wheeler (sdwheeler) commented Dec 5, 2024

Copy link
Copy Markdown
Collaborator

Explain the proper use of a SwitchParameter

@learn-build-service-prod

Copy link
Copy Markdown

Learn Build status updates of commit b577c89:

✅ 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.

For any questions, please:

@michaeltlombardi
Mikey Lombardi (He/Him) (michaeltlombardi) merged commit 113fc43 into MicrosoftDocs:main Dec 5, 2024
@sdwheeler
Sean Wheeler (sdwheeler) deleted the sdw-w262071-switch-params branch January 3, 2025 17:41
Andy Jordan (andyleejordan) pushed a commit to PowerShell/PSScriptAnalyzer that referenced this pull request Mar 17, 2025
* Backport docs updates from docs repo

* Backport msdocs changes for Cmdlets. Where references to files in MSDocs were present (e.g. in UseShouldProcessForStateChangingFunctions), replaced with the live URLs. Did not port back TODO block of AvoidAssignmentToAutomaticVariable.md from https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/241/files#diff-1db3dc2f98da1fa58e24bac28ea9f14f507c78d8299349aa0196f01f9479b6f5
Backported PRs:
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/281/files
- MicrosoftDocs/PowerShell-Docs-Modules@ff80de6
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/275/files
- MicrosoftDocs/PowerShell-Docs-Modules#278
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/235/files
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/276/files
- MicrosoftDocs/PowerShell-Docs-Modules#273
- MicrosoftDocs/PowerShell-Docs-Modules#285
- MicrosoftDocs/PowerShell-Docs-Modules@6ca872b#diff-b3e50d455fe1b464a6fec38ac616cbde4a412766a05a606c1ae55be90ccb63a3
- MicrosoftDocs/PowerShell-Docs-Modules#277

* Update docs/Cmdlets/Invoke-ScriptAnalyzer.md

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

* Apply suggestions from code review

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

---------

Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
Rob Holt (rjmholt) pushed a commit to rjmholt/Specter that referenced this pull request Feb 22, 2026
* Backport docs updates from docs repo

* Backport msdocs changes for Cmdlets. Where references to files in MSDocs were present (e.g. in UseShouldProcessForStateChangingFunctions), replaced with the live URLs. Did not port back TODO block of AvoidAssignmentToAutomaticVariable.md from https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/241/files#diff-1db3dc2f98da1fa58e24bac28ea9f14f507c78d8299349aa0196f01f9479b6f5
Backported PRs:
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/281/files
- MicrosoftDocs/PowerShell-Docs-Modules@ff80de6
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/275/files
- MicrosoftDocs/PowerShell-Docs-Modules#278
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/235/files
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/276/files
- MicrosoftDocs/PowerShell-Docs-Modules#273
- MicrosoftDocs/PowerShell-Docs-Modules#285
- MicrosoftDocs/PowerShell-Docs-Modules@6ca872b#diff-b3e50d455fe1b464a6fec38ac616cbde4a412766a05a606c1ae55be90ccb63a3
- MicrosoftDocs/PowerShell-Docs-Modules#277

* Update docs/Cmdlets/Invoke-ScriptAnalyzer.md

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

* Apply suggestions from code review

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

---------

Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
Rob Holt (rjmholt) pushed a commit to rjmholt/Specter that referenced this pull request Feb 23, 2026
* Backport docs updates from docs repo

* Backport msdocs changes for Cmdlets. Where references to files in MSDocs were present (e.g. in UseShouldProcessForStateChangingFunctions), replaced with the live URLs. Did not port back TODO block of AvoidAssignmentToAutomaticVariable.md from https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/241/files#diff-1db3dc2f98da1fa58e24bac28ea9f14f507c78d8299349aa0196f01f9479b6f5
Backported PRs:
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/281/files
- MicrosoftDocs/PowerShell-Docs-Modules@ff80de6
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/275/files
- MicrosoftDocs/PowerShell-Docs-Modules#278
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/235/files
- https://github.com/MicrosoftDocs/PowerShell-Docs-Modules/pull/276/files
- MicrosoftDocs/PowerShell-Docs-Modules#273
- MicrosoftDocs/PowerShell-Docs-Modules#285
- MicrosoftDocs/PowerShell-Docs-Modules@6ca872b#diff-b3e50d455fe1b464a6fec38ac616cbde4a412766a05a606c1ae55be90ccb63a3
- MicrosoftDocs/PowerShell-Docs-Modules#277

* Update docs/Cmdlets/Invoke-ScriptAnalyzer.md

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

* Apply suggestions from code review

Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com>

---------

Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
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