Repository navigation
Commit 30b5c07
committed
fix(tests): keep the yq programs out of checkbashisms' source heuristic
checkbashisms reads a `.` adjacent to a quote as a POSIX `source` with
arguments, so a yq program beginning or ending with one flags the file
that carries it. The two added by the disabled-mode tests were new
findings against main, which sh_posix_gate denies on commit and push.
Both are rewritten to start at `select(` instead of a bare `.` and are
held in variables rather than inlined, which keeps the command line free
of the `.'file'` shape as well. Behaviour is unchanged: the tests still
pass and the programs select the same fields.
Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 8efb067 commit 30b5c07
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| |||
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
282 | | - | |
283 | | - | |
| 287 | + | |
| 288 | + | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
| |||
0 commit comments