From 64e7ba686c7ca8acc5eb0fe3a5cd59f933d17dae Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Thu, 9 Jul 2020 11:13:00 -0400 Subject: [PATCH] [Tools] Enable PHPCS for populate_visit_windows.php (#6793) Co-authored-by: John Saigle Replaces #5995 --- test/run-php-linter.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/run-php-linter.sh b/test/run-php-linter.sh index 3a75f548eb6..4a80c3f38ce 100755 --- a/test/run-php-linter.sh +++ b/test/run-php-linter.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -euo pipefail - # Run PHP -l on everything to ensure there's no syntax # errors. find docs modules htdocs php src tools \ @@ -44,6 +43,12 @@ declare -a tools_list=( 'populate_visit_windows.php' ) +# And on all PHP files in this array +declare -a test_list=( + 'integrationtests/LorisIntegrationTest.class.inc' + 'integrationtests/LorisIntegrationTestWithCandidate.class.inc' +) + vendor/bin/phpcs --standard=test/LorisCS.xml --extensions=php,inc \ php/ \ htdocs/ \