Skip to content

Commit

Permalink
Move config files for static analysis tools to test/ directory (#5871)
Browse files Browse the repository at this point in the history
Moves the config files for PHPCS and PHPMD to the test/ folder instead of the docs/ folder. These files aren't documents so they shouldn't be in this folder.
  • Loading branch information
johnsaigle authored and driusan committed Dec 17, 2019
1 parent 94e10bd commit 88c48d7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/run-php-linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?;

0 comments on commit 88c48d7

Please sign in to comment.