diff --git a/docs/LorisCS.xml b/test/LorisCS.xml similarity index 100% rename from docs/LorisCS.xml rename to test/LorisCS.xml diff --git a/docs/LorisPHPMD.xml b/test/LorisPHPMD.xml similarity index 100% rename from docs/LorisPHPMD.xml rename to test/LorisPHPMD.xml diff --git a/docs/SrcCS.xml b/test/SrcCS.xml similarity index 100% rename from docs/SrcCS.xml rename to test/SrcCS.xml diff --git a/test/run-php-linter.sh b/test/run-php-linter.sh index e98d5692615..cf479c90ccc 100755 --- a/test/run-php-linter.sh +++ b/test/run-php-linter.sh @@ -9,12 +9,12 @@ find docs modules htdocs php src -name '*.class.inc' -print0 -o -name '*.php' -p # php/ # htdocs/ # modules/ -vendor/bin/phpcs --standard=docs/LorisCS.xml --extensions=php,inc php/ htdocs/ modules/ || exit $?; +vendor/bin/phpcs --standard=test/LorisCS.xml --extensions=php,inc php/ htdocs/ modules/ || exit $?; # Run PHPCS on some scripts -- fixing the files format later # vendor/bin/phpcs --standard=docs/LorisCS.xml tools/CouchDB_Confirm_Integrity.php # Run PHPCS on src/ directory using a different ruleset conforming to PSR2. -vendor/bin/phpcs --standard=docs/SrcCS.xml --extensions=php/php src/ || exit $?; +vendor/bin/phpcs --standard=test/SrcCS.xml --extensions=php/php src/ || exit $?; -vendor/bin/phpmd php/libraries text docs/LorisPHPMD.xml || exit $?; +vendor/bin/phpmd php/libraries text 'test/LorisPHPMD.xml' || exit $?;