mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
Exclude __pycache__ and .pytest_cache from file list (#998)
Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
This commit is contained in:
parent
3bcdf91c74
commit
3c1cecb7f8
1 changed files with 2 additions and 0 deletions
|
@ -95,9 +95,11 @@ function BuildFileList() {
|
||||||
debug "Populating the file list with all the files in the ${WORKSPACE_PATH} workspace"
|
debug "Populating the file list with all the files in the ${WORKSPACE_PATH} workspace"
|
||||||
mapfile -t RAW_FILE_ARRAY < <(find "${WORKSPACE_PATH}" \
|
mapfile -t RAW_FILE_ARRAY < <(find "${WORKSPACE_PATH}" \
|
||||||
-not \( -path '*/\.git' -prune \) \
|
-not \( -path '*/\.git' -prune \) \
|
||||||
|
-not \( -path '*/\.pytest_cache' -prune \) \
|
||||||
-not \( -path '*/\.rbenv' -prune \) \
|
-not \( -path '*/\.rbenv' -prune \) \
|
||||||
-not \( -path '*/\.terragrunt-cache' -prune \) \
|
-not \( -path '*/\.terragrunt-cache' -prune \) \
|
||||||
-not \( -path '*/\.venv' -prune \) \
|
-not \( -path '*/\.venv' -prune \) \
|
||||||
|
-not \( -path '*/\__pycache__' -prune \) \
|
||||||
-type f \
|
-type f \
|
||||||
2>&1 | sort)
|
2>&1 | sort)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue