Skip to content

Commit ae99c2a

Browse files
Fix PSAvoidLongLines on the collision warning
Shorten the Write-Warning message to a single line under the 150-char PSScriptAnalyzer limit configured in .github/linters/.powershell-psscriptanalyzer.psd1.
1 parent 9d55145 commit ae99c2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/Build-PSModuleDocumentation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ $(($successfulCommands | ForEach-Object { "- ``$($_.CommandName)`` `n" }) -join
253253
Write-Host ' Section index page detected - publishing as index.md'
254254
} elseif ($file.BaseName -eq $parentFolderName) {
255255
if ($parentFolder -in $explicitIndexFolders) {
256-
Write-Warning "Group overview page '$relPath' is not used as the section index because the folder already has an explicit index.md; publishing it as a normal page."
256+
Write-Warning "Ignoring group overview '$relPath' as the section index; folder already has an explicit index.md."
257257
} else {
258258
$docsFilePath = Join-Path -Path (Split-Path -Path $docsFilePath -Parent) -ChildPath 'index.md'
259259
Write-Host ' Group overview page detected - publishing as section index (index.md)'

0 commit comments

Comments
 (0)