aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitsuo Heijo <mitsuo.heijo@gmail.com>2020-01-31 00:17:56 +0900
committerMitsuo Heijo <mitsuo.heijo@gmail.com>2020-01-31 00:17:56 +0900
commit6e6f2a345deb694e91bfda53885573370eb11e91 (patch)
tree75925f379568738b008c0792bbfa195a89e97a55
parenta529f0d6aebec229516ce849863bb8c3a3f998d1 (diff)
downloadvim-lsp-settings-6e6f2a345deb694e91bfda53885573370eb11e91.tar.gz
vim-lsp-settings-6e6f2a345deb694e91bfda53885573370eb11e91.tar.bz2
vim-lsp-settings-6e6f2a345deb694e91bfda53885573370eb11e91.zip
add shellcheck and shfmt task
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..24d23b3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+.PHONY: shellcheck
+shellcheck:
+ find ./installer -name "*.sh" -type f -print0 | xargs -0 shellcheck
+
+.PHONY: shellcheck-docker
+shellcheck-docker:
+ find ./installer -name "*.sh" -type f -print0 | xargs -0 docker run -t --rm -v "${PWD}:/mnt" koalaman/shellcheck:stable
+
+.PHONY: shfmt
+shfmt:
+ find ./installer -name "*.sh" -type f -print0 | xargs -0 shfmt -w