WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 7adef52

Browse files
authored
GHA: fix shellcheck SC2046 (#411)
1 parent 66fa057 commit 7adef52

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/checksrc.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
persist-credentials: false
2929

3030
- name: 'checksrc'
31-
run: |
32-
# shellcheck disable=SC2046
33-
scripts/checksrc.pl $(git ls-files '*.c' '*.h')
31+
run: git ls-files '*.c' '*.h' -z | xargs -0 -r scripts/checksrc.pl
3432

3533
dist:
3634
name: 'dist'
@@ -76,8 +74,7 @@ jobs:
7674
run: |
7775
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
7876
shellcheck --version
79-
# shellcheck disable=SC2046
80-
shellcheck $(grep -l -E '^#!(/usr/bin/env bash|/bin/sh|/bin/bash)' $(git ls-files))
77+
git grep -z -l -E '^#!(/usr/bin/env bash|/bin/sh|/bin/bash)' | xargs -0 -r shellcheck --
8178
8279
- name: 'spacecheck'
8380
run: scripts/spacecheck.pl
@@ -97,9 +94,8 @@ jobs:
9794
run: |
9895
source ~/venv/bin/activate
9996
ruff --version
100-
# shellcheck disable=SC2046
101-
ruff check --extend-select=B007,B016,C405,C416,COM818,D200,D213,D204,D401,D415,FURB129,N818,PERF401,PERF403,PIE790,PIE808,PLW0127,Q004,RUF010,SIM101,SIM117,SIM118,TRY400,TRY401 \
102-
$(git ls-files '*.py')
97+
git ls-files '*.py' -z | xargs -0 -r \
98+
ruff check --extend-select=B007,B016,C405,C416,COM818,D200,D213,D204,D401,D415,FURB129,N818,PERF401,PERF403,PIE790,PIE808,PLW0127,Q004,RUF010,SIM101,SIM117,SIM118,TRY400,TRY401 --
10399
104100
- name: 'cmakelint'
105101
run: |

0 commit comments

Comments
 (0)