1.解决SC1091:由于您编辑的代码也没有再次向我显示此错误,并且我没有看到您在source ./sourcefile.sh上面对SC1091的shellcheck注释,因此我只能建议您在main.sh中添加此注释,并再次检查: ... # shellcheck disable=SC1091 source ./sourcefile.sh ... Then run: $ shellcheck main.sh 2.如果shellcheck是使用sn...
# SC2155 - Declare and assign separately to avoid masking return values - https://github.com/koalaman/shellcheck/wiki/SC2155 # - used throughout the codebase disable=SC1091,SC2034,SC2064,SC2155 # SC2162 - read without -r will mangle backslashes - https://github.com/koalaman/shellcheck/...
# https://github.com/koalaman/shellcheck/wiki/SC1091 disable=SC1091 # SC2034: foo appears unused. Verify it or export it. # https://www.shellcheck.net/wiki/SC2034 disable=SC2034 # SC1090: Can't follow non-constant source. Use a directive to specify location. # https://www.shellcheck...
intrigeriauthored3 years ago 804e8f94 History .shellcheckrc159 B 1 2 3 4 5 6 7 8 9 10 11 # Don't follow source'd scripts disable=SC1090 disable=SC1091 # dash supports 'local' disable=SC2039 disable=SC3043 # dash supports 'echo -n' disable=SC3037...
# SC2155 (warning): Declare and assign separately to avoid masking return values. # SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # disable=SC1091,SC2004,SC2129,SC2155,SC2164
# SC2155 (warning): Declare and assign separately to avoid masking return values. # SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # disable=SC1091,SC2004,SC2129,SC2155,SC2164 深圳市奥思网络科技有限公司版权所有 Git 大全 Git 命令学习 Copy...
1.解决SC1091: 因为这个错误在你编辑的代码中也没有再次显示给我,而且我没有看到你shellcheck对SC1091上面的评论source ./sourcefile.sh,我只能建议你添加这个评论main.sh,并再次检查: ...# shellcheck disable=SC1091source./sourcefile.sh... 然后运行: ...
DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # shellcheck disable=SC1090 # shellcheck disable=SC1090,SC1091 \. "$DIR/nvm.sh" --no-use if [ -n "$NODE_VERSION" ]; then 0 comments on commit ad24e96 Please sign in to comment. Footer...
ShellCheck options You can pass any supported ShellCheck option or flag with theSHELLCHECK_OPTSenv key in the job definition. Some examples include: To disable specific checks (eg:-e SC2059 -e SC2034 -e SC1090) To test against different shells (eg:-s dashor-s ksh) ...
# SC2155 (warning): Declare and assign separately to avoid masking return values. # SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # disable=SC1091,SC2004,SC2129,SC2155,SC2164 深圳市奥思网络科技有限公司版权所有 Git 大全 Git 命令学习 Copy...