Commit 1ab76d0
authored
Fix ShellCheck findings in lib-deps-check and update-doc-db workflows (RustPython#7669)
Clear four of the five ShellCheck findings reported in RustPython#7653. The
fifth finding is in upgrade-pylib.lock.yml — a gh-aw-generated file
marked "DO NOT EDIT" whose source .md does not contain the flagged
pattern — and is out of scope here; it will resolve via the in-flight
gh-aw version bump (RustPython#7650).
lib-deps-check.yaml:
* SC2076: replace `=~ " $module "` (quoted regex interpreted
literally) with `== *" $module "*` glob match. Same intent
(literal substring), same semantics across regex metachars.
* SC2086: quote `$GITHUB_OUTPUT` in the output redirect.
update-doc-db.yml:
* SC2129: collapse the eight sequential `echo ... >> $OUTPUT_FILE`
lines (plus one `cat ... >> $OUTPUT_FILE`) into a single grouped
redirect `{ ...; } > "$OUTPUT_FILE"`. Drops the now-redundant
`echo -n '' > $OUTPUT_FILE` truncate.
* SC2016: add `# shellcheck disable=SC2016` above the block; the
backticks in the auto-generated-header comment are literal
Markdown, not command substitution.
Verified locally with shellcheck 0.11.0: both modified blocks
produce no ShellCheck output. Semantic equivalence of the
lib-deps-check change confirmed across six test inputs including
regex metachars and glob-meaningful characters.1 parent f0acc67 commit 1ab76d0
2 files changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
0 commit comments