Skip to content

Commit a88c108

Browse files
committed
fix(Build-PSBuildMarkdown): ✨ Correct CmdletBinding attribute casing and improve parameter formatting
* Updated `[cmdletbinding()]` to `[CmdletBinding()]` for consistency. * Enhanced readability by aligning parameter assignments in `$newMDParams`. * Added new words to `cspell.json` for better spell checking.
1 parent c8a7d54 commit a88c108

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

PowerShellBuild/Public/Build-PSBuildMarkdown.ps1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Build-PSBuildMarkdown {
1919
2020
Analysis the comment-based help of the MyModule module and create markdown documents under ./docs/en-US.
2121
#>
22-
[cmdletbinding()]
22+
[CmdletBinding()]
2323
param(
2424
[parameter(Mandatory)]
2525
[string]$ModulePath,
@@ -57,12 +57,11 @@ function Build-PSBuildMarkdown {
5757

5858
# ErrorAction set to SilentlyContinue so this command will not overwrite an existing MD file.
5959
$newMDParams = @{
60-
Module = $ModuleName
61-
Locale = $Locale
60+
Module = $ModuleName
61+
Locale = $Locale
6262
OutputFolder = [IO.Path]::Combine($DocsPath, $Locale)
63-
ErrorAction = 'SilentlyContinue'
64-
Verbose = $VerbosePreference
65-
Force = $Overwrite
63+
ErrorAction = 'SilentlyContinue'
64+
Verbose = $VerbosePreference
6665
}
6766
if ($Overwrite) {
6867
$newMDParams.Add('Force', $true)

cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
],
1212
"words": [],
1313
"ignoreWords": [
14+
"BHPS",
1415
"psake",
16+
"pscredential",
1517
"MAML"
1618
],
1719
"import": []

0 commit comments

Comments
 (0)