From 5b3ee803a856b6819f2eecf8cd6b3a0e6794206a Mon Sep 17 00:00:00 2001 From: Trent Blackburn Date: Mon, 11 May 2026 22:26:28 -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