From 7a907a722c771292e56bd97c1602d60bf08562f5 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Wed, 18 Nov 2020 19:50:07 +0000 Subject: [PATCH] Ignore more files from linting (#1003) * Ignore node_modules and env folders * Exclude media files * Change env directory to separate dirs * Remove env files * Sort in alphabetical order Co-authored-by: Lukas Gravley --- lib/functions/buildFileList.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index fc84d495..479be7e8 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -100,6 +100,18 @@ function BuildFileList() { -not \( -path '*/\.terragrunt-cache' -prune \) \ -not \( -path '*/\.venv' -prune \) \ -not \( -path '*/\__pycache__' -prune \) \ + -not \( -path '*/\node_modules' -prune \) \ + -not -name ".DS_Store" \ + -not -name "*.gif" \ + -not -name "*.ico" \ + -not -name "*.jpg" \ + -not -name "*.jpeg" \ + -not -name "*.pdf" \ + -not -name "*.png" \ + -not -name "*.webp" \ + -not -name "*.woff" \ + -not -name "*.woff2" \ + -not -name "*.zip" \ -type f \ 2>&1 | sort)