Skip to content

Commit

Permalink
PSReservedParams - link about_CommonParameters (#1908)
Browse files Browse the repository at this point in the history
* PSReservedParams - link about_CommonParameters

Knowing that I'm not allowed to use certain words is more helpful if I have a list of those forbidden words.

* Update docs/Rules/ReservedParams.md

* change link markdown to reference-style syntax

Co-authored-by: Mikey Lombardi (He/Him) <[email protected]>

---------

Co-authored-by: Christoph Bergmeister <[email protected]>
Co-authored-by: Mikey Lombardi (He/Him) <[email protected]>
  • Loading branch information
3 people authored Sep 11, 2023
1 parent bd79460 commit 2e77c2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/Rules/ReservedParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ title: ReservedParams

## Description

You cannot use reserved common parameters in an advanced function.
You cannot use [reserved common parameters][01] in an advanced function.

[01]: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters

## How

Expand All @@ -24,7 +26,7 @@ Change the name of the parameter.
```powershell
function Test
{
[CmdletBinding]
[CmdletBinding()]
Param
(
$ErrorVariable,
Expand All @@ -38,7 +40,7 @@ function Test
```powershell
function Test
{
[CmdletBinding]
[CmdletBinding()]
Param
(
$Err,
Expand Down

0 comments on commit 2e77c2a

Please sign in to comment.