diff --git a/Public/New-ConfigurationFormat.ps1 b/Public/New-ConfigurationFormat.ps1 index 48d9b66..a249802 100644 --- a/Public/New-ConfigurationFormat.ps1 +++ b/Public/New-ConfigurationFormat.ps1 @@ -11,7 +11,12 @@ [switch] $EnableFormatting, [validateSet('None', 'Asc', 'Desc')][string] $Sort, + [switch] $RemoveComments, + [switch] $RemoveEmptyLines, + [switch] $RemoveAllEmptyLines, + [switch] $RemoveCommentsInParamBlock, + [switch] $RemoveCommentsBeforeParamBlock, [switch] $PlaceOpenBraceEnable, [switch] $PlaceOpenBraceOnSameLine, @@ -59,6 +64,18 @@ if ($PSBoundParameters.ContainsKey('RemoveComments')) { $Formatting.RemoveComments = $RemoveComments.IsPresent } + if ($PSBoundParameters.ContainsKey('RemoveEmptyLines')) { + $Formatting.RemoveEmptyLines = $RemoveEmptyLines.IsPresent + } + if ($PSBoundParameters.ContainsKey('RemoveAllEmptyLines')) { + $Formatting.RemoveAllEmptyLines = $RemoveAllEmptyLines.IsPresent + } + if ($PSBoundParameters.ContainsKey('RemoveCommentsInParamBlock')) { + $Formatting.RemoveCommentsInParamBlock = $RemoveCommentsInParamBlock.IsPresent + } + if ($PSBoundParameters.ContainsKey('RemoveCommentsBeforeParamBlock')) { + $Formatting.RemoveCommentsBeforeParamBlock = $RemoveCommentsBeforeParamBlock.IsPresent + } $Formatting.FormatterSettings = [ordered] @{ IncludeRules = @(