Public/Get-PSPlumbingRulePath.ps1

function Get-PSPlumbingRulePath {
    [CmdletBinding()]
    param()

    $moduleRoot = Split-Path -Path $PSScriptRoot -Parent
    $artifactRulesRoot = Join-Path $moduleRoot 'Rules'
    if (Test-Path -LiteralPath $artifactRulesRoot) {
        $rulesRoot = $artifactRulesRoot
    }
    else {
        $rulesRoot = Join-Path (Split-Path -Path (Split-Path -Path $moduleRoot -Parent) -Parent) 'rules'
    }

    @(Get-ChildItem -LiteralPath $rulesRoot -Filter '*.psm1' -File -Recurse |
        ForEach-Object { $_.FullName })
}