Skip to content

Commit 2e77c2a

Browse files
petervandivierbergmeistermichaeltlombardi
authored
PSReservedParams - link about_CommonParameters (#1908)
* 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) <michael.t.lombardi@gmail.com> --------- Co-authored-by: Christoph Bergmeister <c.bergmeister@gmail.com> Co-authored-by: Mikey Lombardi (He/Him) <michael.t.lombardi@gmail.com>
1 parent bd79460 commit 2e77c2a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/Rules/ReservedParams.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ title: ReservedParams
1111

1212
## Description
1313

14-
You cannot use reserved common parameters in an advanced function.
14+
You cannot use [reserved common parameters][01] in an advanced function.
15+
16+
[01]: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters
1517

1618
## How
1719

@@ -24,7 +26,7 @@ Change the name of the parameter.
2426
```powershell
2527
function Test
2628
{
27-
[CmdletBinding]
29+
[CmdletBinding()]
2830
Param
2931
(
3032
$ErrorVariable,
@@ -38,7 +40,7 @@ function Test
3840
```powershell
3941
function Test
4042
{
41-
[CmdletBinding]
43+
[CmdletBinding()]
4244
Param
4345
(
4446
$Err,

0 commit comments

Comments
 (0)