aboutsummaryrefslogtreecommitdiff
path: root/lint/ksh.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-31 20:46:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-31 20:46:10 +1300
commit111c8d9db7798ccccd07157f346f2c039131cfc9 (patch)
treeef74c2bc0ae81476d195682c1faa60aa843166b2 /lint/ksh.sh
parent196155499c04b2c2050302e6575f1bcbbed052f1 (diff)
downloaddotfiles-111c8d9db7798ccccd07157f346f2c039131cfc9.tar.gz
dotfiles-111c8d9db7798ccccd07157f346f2c039131cfc9.zip
Revert "Drastically simplify `lint` scripts"
I forgot that the `lint` tools here need to check the *built* files, and that that's the reason the `perlcritic` check against the source .pl file was failing. While it's still true that it would be preferable to test the files found in a deterministic order, this branch's attempt to address that issue is pretty much nonsense and can be abandoned. This reverts commit 196155499c04b2c2050302e6575f1bcbbed052f1.
Diffstat (limited to 'lint/ksh.sh')
-rw-r--r--lint/ksh.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/lint/ksh.sh b/lint/ksh.sh
index fd558727..4cedc6f7 100644
--- a/lint/ksh.sh
+++ b/lint/ksh.sh
@@ -1,5 +1,3 @@
-shellcheck -e SC1090 -s sh -- \
- ksh/shrc.d/*.sh
-shellcheck -e SC1090 -s ksh -- \
- ksh/kshrc \
- ksh/kshrc.d/*.ksh
+find ksh \
+ -type f -name '*.sh' -exec shellcheck -e SC1090 -s sh -- {} + -o \
+ -type f -exec shellcheck -e SC1090 -s ksh -- {} +