Commit baa8b71
authored
style: add ValidateNotNullOrEmpty to ManifestHelpers mandatory string params (#8)
Completes the cross-repo validator alignment with PowerShellModuleTemplate#23.
PR #7 (2026-05-10) added the validator to `Split-SemVerString -VersionString`;
this commit covers the remaining six mandatory `[string]` parameters across
`Compare-SemVerPrerelease`, `Test-VersionComparison`, and `Test-VersionConstraint`.
Behavior for valid inputs is unchanged. Misuse (null or empty version/prerelease
strings) now fails at parameter binding instead of producing downstream
NullReferenceExceptions inside the comparison logic.1 parent c8f8339 commit baa8b71
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
| |||
322 | 326 | | |
323 | 327 | | |
324 | 328 | | |
| 329 | + | |
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
0 commit comments