Skip to content

Commit 7922809

Browse files
🩹 [Patch]: Improve code readability by formatting SuppressMessage attributes in Get-PSModuleAliasesToExport and Get-PSModuleClassesToExport functions
1 parent 957b1ed commit 7922809

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎scripts/helpers/Build/Get-PSModuleAliasesToExport.ps1‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
'PSAvoidUsingWriteHost', '', Scope = 'Function',
1515
Justification = 'Want to just write to the console, not the pipeline.'
1616
)]
17+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
18+
'PSAvoidLongLines', '', Scope = 'Function',
19+
Justification = 'Contains long links.'
20+
)]
1721
param(
1822
# Path to the folder where the module source code is located.
1923
[Parameter(Mandatory)]

‎scripts/helpers/Build/Get-PSModuleClassesToExport.ps1‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
.NOTES
1818
Inspired by [about_Classes | Exporting classes with type accelerators](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_classes?view=powershell-7.4#exporting-classes-with-type-accelerators)
1919
#>
20-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Contains long links.')]
20+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
21+
'PSAvoidLongLines', '', Scope = 'Function',
22+
Justification = 'Contains long links.'
23+
)]
2124
[CmdletBinding()]
2225
param (
2326
# The path to the module root folder.

0 commit comments

Comments
 (0)