Update header for v2.6 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ShellCheck | |
on: [push] | |
jobs: | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
# SC2086 (info): Double quote to prevent globbing and word splitting. | |
# SC2068 (error): Double quote array expansions to avoid re-splitting elements. [SC2068] | |
# SC2006 (style): Use $(...) notation instead of legacy backticks `...` | |
# SC3043 (warning): In POSIX sh, 'local' is undefined. | |
# https://stackoverflow.com/questions/18597697/posix-compliant-way-to-scope-variables-to-a-function-in-a-shell-script#answer-18600920 | |
# SC2046 (warning): Quote this to prevent word splitting. | |
# SC2003 (style): expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]]. | |
# SC3037 (warning): In POSIX sh, echo flags are undefined. | |
# SC2181 (note): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. | |
# SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames. | |
# SC3040 (warning): In POSIX sh, set option pipefail is undefined. | |
# SC1091 (note): Not following: [FILEPATH] was not specified as input (see shellcheck -x). | |
# We don't want to follow the optional config files here | |
env: | |
SHELLCHECK_OPTS: -e SC2068 -e SC2086 -e SC2006 -e SC3043 -e SC2046 -e SC2003 -e SC3037 -e SC2181 -e SC2010 -e SC3040 -e SC1091 | |
with: | |
scandir: './' |