From 11f437df4c4d42b7d8a705acc3ca795d480138d7 Mon Sep 17 00:00:00 2001 From: kpj Date: Fri, 11 Sep 2020 13:51:15 +0200 Subject: [PATCH] Fix usage of FILE_ARRAY_SNAKEMAKE --- lib/buildFileList.sh | 2 +- lib/linter.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index a8452a2f..1a79a882 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -487,7 +487,7 @@ function BuildFileList() { ########################### # Get the SNAKEMAKE files # ########################### - elif [ "${FILE_TYPE}" == "smk" ]; then + elif [ "${FILE_TYPE}" == "smk" ] || [ "${BASE_FILE}" == "Snakefile" ]; then ################################ # Append the file to the array # ################################ diff --git a/lib/linter.sh b/lib/linter.sh index 64a8ed36..2a47b7cd 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -315,6 +315,7 @@ FILE_ARRAY_PYTHON_FLAKE8=() # Array of files to check FILE_ARRAY_R=() # Array of files to check FILE_ARRAY_RAKU=() # Array of files to check FILE_ARRAY_RUBY=() # Array of files to check +FILE_ARRAY_SNAKEMAKE=() # Array of files to check FILE_ARRAY_STATES=() # Array of files to check FILE_ARRAY_SQL=() # Array of files to check FILE_ARRAY_TERRAFORM=() # Array of files to check