aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-01-03 06:48:57 -0200
committerEuAndreh <eu@euandre.org>2019-01-03 06:52:03 -0200
commitb5700937691e27b1662e87f018d73cac6d4e338c (patch)
treeb7441970a20e60e74e5f27151da1dfbb07129f8d
parentDisable 1090, 1091 and 2139 shellcheck rules. (diff)
downloaddotfiles-b5700937691e27b1662e87f018d73cac6d4e338c.tar.gz
dotfiles-b5700937691e27b1662e87f018d73cac6d4e338c.tar.xz
Don't run checks on git-crypt files.
-rw-r--r--default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 298d1af..c27faff 100644
--- a/default.nix
+++ b/default.nix
@@ -8,7 +8,9 @@ in with pkgs; with pkgs.stdenv; rec {
phases = "unpackPhase buildPhase";
buildInputs = [ pkgs.shellcheck ];
buildPhase = ''
- find . -type f -name '*.sh' | grep -v os-installation.sh | xargs shellcheck -e SC1090 -e SC1091 -e SC2139
+ export SHELLCHECK_OPTS="-e SC1090 -e SC1091 -e SC2139"
+ ignored='(encrypted|os-installation.sh|notmuch-post.sh)'
+ find . -type f -name '*.sh' | grep -E -v $ignored | xargs shellcheck
touch $out
'';
};