Skip to content

Commit

Permalink
Update ci_shellcheck.yml: Ignore SC2317
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Dec 18, 2024
1 parent c2972a9 commit 09e98c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci_shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
# "steps" represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a set of commands using the runners shell
# Runs a set of commands using the runner's shell
- name: check bash files
run: |
# check bash files (bash -n, shellchecki -x)
# check bash files (bash -n, shellcheck -x)
err=0
for i in $(find . -maxdepth 2 -name '*.sh'); do
echo "==================== $i"
Expand Down Expand Up @@ -58,8 +58,9 @@ jobs:
#SC2069: Something about the order of >&2 and > xxx
#SC2024: similar to SC2069
#SC2269: This variable is assigned to itself
#SC2317: Command appears to be unreachable
###shellcheck -x -e SC1090 -e SC1091 -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 $i || this_err=1
shellcheck -x -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 $i || this_err=1
shellcheck -x -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 -e SC2317 $i || this_err=1
;;
esac
if [ ${this_err} -eq 1 ]; then
Expand Down

0 comments on commit 09e98c5

Please sign in to comment.