From 644e69131b3799ad4ff1ab38d62473ea1a0a640e Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Sat, 29 Aug 2020 21:50:26 +0200 Subject: [PATCH] Fix shfmt test --- .automation/test/{shfmt => shell_shfmt}/.editorconfig | 3 +++ .automation/test/{shfmt => shell_shfmt}/README.md | 0 .../{shfmt/shell_bad_1.sh => shell_shfmt/shell_shfmt_bad_1.sh} | 0 .../shell_good_1.sh => shell_shfmt/shell_shfmt_good_1.sh} | 0 lib/worker.sh | 2 +- 5 files changed, 4 insertions(+), 1 deletion(-) rename .automation/test/{shfmt => shell_shfmt}/.editorconfig (51%) rename .automation/test/{shfmt => shell_shfmt}/README.md (100%) rename .automation/test/{shfmt/shell_bad_1.sh => shell_shfmt/shell_shfmt_bad_1.sh} (100%) rename .automation/test/{shfmt/shell_good_1.sh => shell_shfmt/shell_shfmt_good_1.sh} (100%) diff --git a/.automation/test/shfmt/.editorconfig b/.automation/test/shell_shfmt/.editorconfig similarity index 51% rename from .automation/test/shfmt/.editorconfig rename to .automation/test/shell_shfmt/.editorconfig index f41c803b..8c250236 100644 --- a/.automation/test/shfmt/.editorconfig +++ b/.automation/test/shell_shfmt/.editorconfig @@ -1,3 +1,6 @@ +# top-most EditorConfig file +root = true + [*.ext] indent_style = space indent_size = 4 diff --git a/.automation/test/shfmt/README.md b/.automation/test/shell_shfmt/README.md similarity index 100% rename from .automation/test/shfmt/README.md rename to .automation/test/shell_shfmt/README.md diff --git a/.automation/test/shfmt/shell_bad_1.sh b/.automation/test/shell_shfmt/shell_shfmt_bad_1.sh similarity index 100% rename from .automation/test/shfmt/shell_bad_1.sh rename to .automation/test/shell_shfmt/shell_shfmt_bad_1.sh diff --git a/.automation/test/shfmt/shell_good_1.sh b/.automation/test/shell_shfmt/shell_shfmt_good_1.sh similarity index 100% rename from .automation/test/shfmt/shell_good_1.sh rename to .automation/test/shell_shfmt/shell_shfmt_good_1.sh diff --git a/lib/worker.sh b/lib/worker.sh index e8d8ae44..d381c7d1 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -679,7 +679,7 @@ function RunTestCases() { TestCodebase "R" "lintr" "lintr::lint()" ".*\.\(r\|rmd\)\$" "r" TestCodebase "RAKU" "raku" "raku -c" ".*\.\(raku\|rakumod\|rakutest\|pm6\|pl6\|p6\)\$" "raku" TestCodebase "RUBY" "rubocop" "rubocop -c ${RUBY_LINTER_RULES}" ".*\.\(rb\)\$" "ruby" - TestCodebase "SHFMT" "shfmt" "shfmt -d" ".*\.\(sh\|bash\|dash\|ksh\)\$" "shell" + TestCodebase "SHELL_SHFMT" "shfmt" "shfmt -d" ".*\.\(sh\|bash\|dash\|ksh\)\$" "shell_shfmt" TestCodebase "STATES" "asl-validator" "asl-validator --json-path" ".*\.\(json\)\$" "states" TestCodebase "SQL" "sql-lint" "sql-lint --config ${SQL_LINTER_RULES}" ".*\.\(sql\)\$" "sql" TestCodebase "TERRAFORM" "tflint" "tflint -c ${TERRAFORM_LINTER_RULES}" ".*\.\(tf\)\$" "terraform"