From eee5d5d4821120c4d4923528810bee32c48b9d16 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 18 Apr 2021 00:14:18 +0200 Subject: [PATCH] nix(feat): Add shellcheck to postgrest-lint for bash scripts in test/* --- nix/style.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/style.nix b/nix/style.nix index fb4828c4e..3cfda243a 100644 --- a/nix/style.nix +++ b/nix/style.nix @@ -4,6 +4,7 @@ , git , hlint , nixpkgs-fmt +, shellcheck , silver-searcher , stylish-haskell }: @@ -46,7 +47,7 @@ let checkedShellScript { name = "postgrest-lint"; - docs = "Lint all Haskell files."; + docs = "Lint all Haskell files and bash scripts."; inRootDir = true; } '' @@ -54,6 +55,9 @@ let # --vimgrep fixes a bug in ag: https://github.com/ggreer/the_silver_searcher/issues/753 ${silver-searcher}/bin/ag -l --vimgrep -g '\.l?hs$' . \ | xargs ${hlint}/bin/hlint -X QuasiQuotes -X NoPatternSynonyms + + # Lint bash scripts + ${shellcheck}/bin/shellcheck test/create_test_db test/memory-tests.sh test/with_tmp_db ''; tools = [ style styleCheck lint ];