Skip to content

Commit 16f06ee

Browse files
refactor: Consolidate SuppressMessage attributes for markdown templates in Helper.psm1
1 parent 3f2a523 commit 16f06ee

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/scripts/Helper.psm1

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#Requires -Modules GitHub
2+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
3+
'PSAvoidLongLines', '',
4+
Justification = 'Markdown templates'
5+
)]
26

37
function Show-RepoList {
48
<#
@@ -124,10 +128,6 @@ function Update-ActionList {
124128
125129
Regenerates the action table and writes it to docs\GitHub-Actions\index.md.
126130
#>
127-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
128-
'PSAvoidLongLines', '',
129-
Justification = 'Markdown templates'
130-
)]
131131
[CmdletBinding(SupportsShouldProcess)]
132132
param()
133133

@@ -188,10 +188,6 @@ function Update-ModuleList {
188188
189189
Regenerates the module table and writes it to docs\PowerShell\Modules\index.md.
190190
#>
191-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
192-
'PSAvoidLongLines', '',
193-
Justification = 'Markdown templates'
194-
)]
195191
[CmdletBinding(SupportsShouldProcess)]
196192
param()
197193

@@ -247,10 +243,6 @@ function Update-FunctionAppList {
247243
248244
Regenerates the function app table and writes it to docs\PowerShell\FunctionApps\index.md.
249245
#>
250-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
251-
'PSAvoidLongLines', '',
252-
Justification = 'Markdown templates'
253-
)]
254246
[CmdletBinding(SupportsShouldProcess)]
255247
param()
256248

0 commit comments

Comments
 (0)