Commit d37b827
ci(lint): skip PSScriptAnalyzer on un-initialized template
PowerShell's parser splits the literal './{{ModuleName}}' into mismatched
script-block delimiters, so Invoke-ScriptAnalyzer fails before it can
read the folder:
A positional parameter cannot be found that accepts argument
'{ModuleName}'.
The original PR claimed lint worked on the template; testing post-
Actions-re-enable proves otherwise. Apply the same Detect template state
guard the unit-tests job uses, gated on Cache PowerShell modules,
Install PSScriptAnalyzer, and Run PSScriptAnalyzer. Downstream init's
substitution turns './{{ModuleName}}' into a real path so the guard
flips off and lint runs normally.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c6a35cf commit d37b827
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
21 | 36 | | |
| 37 | + | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
| |||
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
31 | | - | |
| 47 | + | |
32 | 48 | | |
33 | 49 | | |
34 | 50 | | |
35 | 51 | | |
36 | 52 | | |
37 | 53 | | |
| 54 | + | |
38 | 55 | | |
39 | 56 | | |
40 | 57 | | |
| |||
0 commit comments