From d133621d14c397211fb162099c5c34ff30aacc77 Mon Sep 17 00:00:00 2001 From: Trent Blackburn Date: Mon, 11 May 2026 22:27:01 -0400 Subject: [PATCH] style: add ValidateNotNullOrEmpty to build.ps1 -Task parameter Matches the canonical template (PowerShellModuleTemplate#23). Without the validator, `./build.ps1 -Task ''` and `./build.ps1 -Task $null` slip past parameter binding and produce confusing downstream errors from psake. The validator surfaces the misuse immediately. --- build.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/build.ps1 b/build.ps1 index 8887f8f..c76be82 100644 --- a/build.ps1 +++ b/build.ps1 @@ -40,6 +40,7 @@ param( @() } })] + [ValidateNotNullOrEmpty()] [string[]]$Task = 'default', # Bootstrap dependencies