1414 ' PSAvoidUsingWriteHost' , ' ' ,
1515 Justification = ' Logging to Github Actions.'
1616)]
17+ [Diagnostics.CodeAnalysis.SuppressMessageAttribute (
18+ ' PSAvoidLongLines' , ' ' ,
19+ Justification = ' Consistent formatting of ternary operator usage'
20+ )]
1721[CmdLetBinding ()]
18- Param (
22+ param (
1923 # The path to the 'src' folder of the repo.
2024 [Parameter (Mandatory )]
2125 [string ] $Path ,
@@ -40,8 +44,7 @@ BeforeAll {
4044 }
4145 Write-Host ' ::endgroup::'
4246 $privateFunctionsPath = Join-Path - Path $functionsPath - ChildPath ' private'
43- $privateFunctionFiles = (Test-Path - Path $privateFunctionsPath ) ?
44- (Get-ChildItem - Path $privateFunctionsPath - File - Filter ' *.ps1' - Recurse) : $null
47+ $privateFunctionFiles = (Test-Path - Path $privateFunctionsPath ) ? (Get-ChildItem - Path $privateFunctionsPath - File - Filter ' *.ps1' - Recurse) : $null
4548 Write-Host " ::group:: - Private [$ ( $privateFunctionFiles.Count ) ]"
4649 $privateFunctionFiles | ForEach-Object {
4750 Write-Host " - $ ( $_.FullName ) "
@@ -62,16 +65,14 @@ BeforeAll {
6265 }
6366 Write-Host ' ::endgroup::'
6467 $privateVariablesPath = Join-Path - Path $variablesPath - ChildPath ' private'
65- $privateVariableFiles = (Test-Path - Path $privateVariablesPath ) ?
66- (Get-ChildItem - Path $privateVariablesPath - File - Filter ' *.ps1' - Recurse) : $null
68+ $privateVariableFiles = (Test-Path - Path $privateVariablesPath ) ? (Get-ChildItem - Path $privateVariablesPath - File - Filter ' *.ps1' - Recurse) : $null
6769 Write-Host " ::group:: - Private [$ ( $privateVariableFiles.Count ) ]"
6870 $privateVariableFiles | ForEach-Object {
6971 Write-Host " - $ ( $_.FullName ) "
7072 }
7173 Write-Host ' ::endgroup::'
7274 $publicVariablesPath = Join-Path - Path $variablesPath - ChildPath ' public'
73- $publicVariableFiles = (Test-Path - Path $publicVariablesPath ) ?
74- (Get-ChildItem - Path $publicVariablesPath - File - Filter ' *.ps1' - Recurse) : $null
75+ $publicVariableFiles = (Test-Path - Path $publicVariablesPath ) ? (Get-ChildItem - Path $publicVariablesPath - File - Filter ' *.ps1' - Recurse) : $null
7576 Write-Host " ::group:: - Public [$ ( $publicVariableFiles.Count ) ]"
7677 $publicVariableFiles | ForEach-Object {
7778 Write-Host " - $ ( $_.FullName ) "
@@ -85,16 +86,14 @@ BeforeAll {
8586 }
8687 Write-Host ' ::endgroup::'
8788 $privateClassPath = Join-Path - Path $classPath - ChildPath ' private'
88- $privateClassFiles = (Test-Path - Path $privateClassPath ) ?
89- (Get-ChildItem - Path $privateClassPath - File - Filter ' *.ps1' - Recurse) : $null
89+ $privateClassFiles = (Test-Path - Path $privateClassPath ) ? (Get-ChildItem - Path $privateClassPath - File - Filter ' *.ps1' - Recurse) : $null
9090 Write-Host " ::group:: - Private [$ ( $privateClassFiles.Count ) ]"
9191 $privateClassFiles | ForEach-Object {
9292 Write-Host " - $ ( $_.FullName ) "
9393 }
9494 Write-Host ' ::endgroup::'
9595 $publicClassPath = Join-Path - Path $classPath - ChildPath ' public'
96- $publicClassFiles = (Test-Path - Path $publicClassPath ) ?
97- (Get-ChildItem - Path $publicClassPath - File - Filter ' *.ps1' - Recurse) : $null
96+ $publicClassFiles = (Test-Path - Path $publicClassPath ) ? (Get-ChildItem - Path $publicClassPath - File - Filter ' *.ps1' - Recurse) : $null
9897 Write-Host " ::group:: - Public [$ ( $publicClassFiles.Count ) ]"
9998 $publicClassFiles | ForEach-Object {
10099 Write-Host " - $ ( $_.FullName ) "
0 commit comments