Commit f3007a6
feat(shellcheck): add SC_SKIP_JINJA option to skip Jinja2 templates
ShellCheck cannot parse Jinja2 template syntax ({{ }}, {% %}, {# #}).
Any file containing these constructs breaks the parser entirely,
producing unreliable findings (SC1054, SC1073, SC1083). Setting
SC_SKIP_JINJA=1 causes filter_shell_scripts() to exclude these files
before they reach shellcheck. Disabled by default so existing behavior
is unchanged.
Tested against https://github.com/openshift/cac-content-fork where
findings dropped from 11,776 to 43 (99.6% noise reduction).
Resolves: PSSECAUT-1577
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8203630 commit f3007a6
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
78 | 91 | | |
79 | 92 | | |
80 | | - | |
| 93 | + | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| |||
0 commit comments