diff options
author | merakor <cem@ckyln.com> | 2020-12-21 10:52:01 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-12-21 10:52:01 +0000 |
commit | 36308f68ddd95984c1909c5ca00a6ab70544d15b (patch) | |
tree | ed8130e50fd9fe96eea980a6f352f53f44d07966 | |
parent | c1c68a205b8cbf0a8ee55f099c27d0a0c7f8afe2 (diff) | |
download | cpt-36308f68ddd95984c1909c5ca00a6ab70544d15b.tar.gz |
tests: calm shellcheck down
FossilOrigin-Name: 16695158bf8e9ce16fb245dd3d71c44b3678892cbc7e8cd7ca221ce7d4c48823
-rw-r--r-- | .dir-locals.el | 4 | ||||
-rw-r--r-- | src/cpt-lib.in | 4 | ||||
-rw-r--r-- | src/test.do | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..b7ac48b --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,4 @@ +;;; Directory Local Variables +;;; For more information see (info "(emacs) Directory Variables") + +((sh-mode . ((flycheck-shellcheck-excluded-warnings . '(2119))))) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index a8fac5c..3d2b2f4 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1765,7 +1765,9 @@ create_cache() { # which point to them. mkdir -p "${tmp_dir:=${CPT_TMPDIR:=$cac_dir/proc}/$pid}" - # If an argument is given, skip the creation of other cache directories + # If an argument is given, skip the creation of other cache directories. + # This here makes shellcheck extremely angry, so I am globally disabling + # SC2119. [ "$1" ] || mkdir -p "${mak_dir:=$tmp_dir/build}" \ "${pkg_dir:=$tmp_dir/pkg}" \ "${tar_dir:=$tmp_dir/export}" diff --git a/src/test.do b/src/test.do index 76771c0..9791cea 100644 --- a/src/test.do +++ b/src/test.do @@ -1,5 +1,5 @@ . ../config.rc redo-ifchange cpt-lib exec >&2 -find . ../contrib -name 'cpt-*' ! -name '*.*' -exec shellcheck -x -f gcc {} + +find . ../contrib -name 'cpt-*' ! -name '*.*' -exec shellcheck -e 2119 -x -f gcc {} + PHONY |