From f0ae0454ee07b2062675e2d0cbf30dbffdc41faf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 4 Jan 2023 11:46:43 +0100 Subject: fix check and test make targets and run make format The make targets use a shell loop which does not fail if one of the iterations fail. --- Makefile | 4 ++-- supported-servers.lua | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7d505d4..144e229 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,10 @@ check-luacheck: luacheck --globals=vis -- $(LUA_FILES) check-format: - for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done + set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done format: lua-format -i $(LUA_FILES) test: - for tf in $(TEST_FILES); do "$$tf"; done + set -e; for tf in $(TEST_FILES); do "$$tf"; done diff --git a/supported-servers.lua b/supported-servers.lua index c5017f2..4f77a3f 100644 --- a/supported-servers.lua +++ b/supported-servers.lua @@ -7,7 +7,10 @@ local source_path = source_str:match('(.*/)') local lspc = dofile(source_path .. 'lspc.lua') local clangd = {name = 'clangd', cmd = 'clangd'} -local typescript = { name = 'typescript', cmd = 'typescript-language-server --stdio' } +local typescript = { + name = 'typescript', + cmd = 'typescript-language-server --stdio', +} return { cpp = clangd, -- cgit v1.2.3